FAQ

svn commit: r1238706 - in /lucene/cms/trunk: lib/path.pm lib/view.pm templates/solr-sidebar.html templates/solr.html

Gsingers
Jan 31, 2012 at 5:41 pm
Author: gsingers
Date: Tue Jan 31 17:40:52 2012
New Revision: 1238706

URL: http://svn.apache.org/viewvc?rev=1238706&view=rev
Log:
LUCENE-2748: hook in svn, mail feeds

Modified:
lucene/cms/trunk/lib/path.pm
lucene/cms/trunk/lib/view.pm
lucene/cms/trunk/templates/solr-sidebar.html
lucene/cms/trunk/templates/solr.html

Modified: lucene/cms/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/lib/path.pm?rev=1238706&r1=1238705&r2=1238706&view=diff
==============================================================================
--- lucene/cms/trunk/lib/path.pm (original)
+++ lucene/cms/trunk/lib/path.pm Tue Jan 31 17:40:52 2012
@@ -5,11 +5,27 @@ use ASF::Value;

# Patterns should go from more restrictive matches to less restrictive.
our @patterns = (
-[qr!core\/mirrors-core-redir\.mdtext$!, main => { template => "mirrors-core-redir.html" }],# have downloads go to a redirect so that we can see how many people are actually clicking the link
-[qr!solr\/mirrors-solr-redir\.mdtext$!, main => { template => "mirrors-solr-redir.html" }],
-[qr!core\/index\.mdtext$!, main => { template => "core.html" }],
- [qr!solr\/index\.mdtext$!, main => { template => "solr.html"
- }],
+ [qr!core\/mirrors-core-redir\.mdtext$!, main => { template => "mirrors-core-redir.html" }],# have downloads go to a redirect so that we can see how many people are actually clicking the link
+ [qr!solr\/mirrors-solr-redir\.mdtext$!, main => { template => "mirrors-solr-redir.html" }],
+ [qr!core\/index\.mdtext$!, main => { template => "core.html",
+ jira => ASF::Value::Jira->new(limit => 50,
+ url => "http://s.apache.org/corejira"),
+ svn => ASF::Value::SVN->new(limit => 50, project => "/lucene/dev/trunk"),
+ coreuser => ASF::Value::Mail->new(list => 'java-user@lucene.apache.org',
+ limit => 3),
+ dev => ASF::Value::Mail->new(list => 'dev@lucene.apache.org',
+ limit => 3)
+ }],
+ [qr!solr\/index\.mdtext$!, main => {
+ template => "solr.html",
+ svn => ASF::Value::SVN->new(limit => 50, project => "/lucene/dev/trunk"),
+ jira => ASF::Value::Jira->new(limit => 5,
+ url => "http://s.apache.org/solrjira"),
+ solruser => ASF::Value::Mail->new(list => 'solr-user@lucene.apache.org',
+ limit => 3),
+ dev => ASF::Value::Mail->new(list => 'dev@lucene.apache.org',
+ limit => 3)
+ }],
[qr!pylucene/jcc/index\.mdtext$!, main => { template => "jcc.html" }],
[qr!pylucene/index\.mdtext$!, main => { template => "pylucene.html" }],
[qr!openrelevance\/index\.mdtext$!, main => { template => "openrelevance.html" }],

Modified: lucene/cms/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/lib/view.pm?rev=1238706&r1=1238705&r2=1238706&view=diff
==============================================================================
--- lucene/cms/trunk/lib/view.pm (original)
+++ lucene/cms/trunk/lib/view.pm Tue Jan 31 17:40:52 2012
@@ -42,7 +42,7 @@ sub main {
read_text_file $f, $args{$1};
}
}
- print "Template: $template \n";
+ #print "Template: $template \n";
return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
}


Modified: lucene/cms/trunk/templates/solr-sidebar.html
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/templates/solr-sidebar.html?rev=1238706&r1=1238705&r2=1238706&view=diff
==============================================================================
--- lucene/cms/trunk/templates/solr-sidebar.html (original)
+++ lucene/cms/trunk/templates/solr-sidebar.html Tue Jan 31 17:40:52 2012
@@ -7,10 +7,8 @@

<div class="status-item">
{% for e in svn.list %}
- <a class="svn" href="http://svn.apache.org/viewvc?revision={{ e.revision }};view=revision">r{{ e.revision
- }}</a>
- {{ e.message|safe|truncatewords_html:20 }} ({{
- e.projects|safe }}) &mdash;
+ <a class="svn" href="http://svn.apache.org/viewvc?revision={{ e.revision }};view=revision">r{{ e.revision }}</a>
+ {{ e.message|safe|truncatewords_html:20 }} ({{ e.projects|safe }}) &mdash;
<a href="http://people.apache.org/committer-index.html#{{ e.author }}">{{ e.author }}</a>
{% endfor %}
</div>
@@ -20,7 +18,7 @@

<div class="status-item">{% for e in jira.list %}
<a class="bug" href="{{ e.url }}">{{ e.title|safe }}</a><br/>
- {{ e.content|safe|truncatewords_html:20 }}
+ {{ e.content|safe|truncatewords_html:20 }}
{% endfor %}
</div>
</div>

Modified: lucene/cms/trunk/templates/solr.html
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/templates/solr.html?rev=1238706&r1=1238705&r2=1238706&view=diff
==============================================================================
--- lucene/cms/trunk/templates/solr.html (original)
+++ lucene/cms/trunk/templates/solr.html Tue Jan 31 17:40:52 2012
@@ -2,6 +2,7 @@
This is a work around to the fact that the CMS doesn't allow inheritance of depth
2, so instead do a lot of includes. See https://issues.apache.org/jira/browse/INFRA-3850
#}
+<!-- solr.html -->
{% extends "head.html" %}
{% block css %}
<link href="../css/global.css" rel="stylesheet" type="text/css">
reply

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›

1 user in discussion

Gsingers: 1 post