Show More
@@ -137,6 +137,8 b'' | |||||
137 | </%def> |
|
137 | </%def> | |
138 | <%def name="js_extra()"></%def> |
|
138 | <%def name="js_extra()"></%def> | |
139 | ${self.js()} |
|
139 | ${self.js()} | |
|
140 | <%def name="head_extra()"></%def> | |||
|
141 | ${self.head_extra()} | |||
140 | </head> |
|
142 | </head> | |
141 | <body id="body"> |
|
143 | <body id="body"> | |
142 | ## IE hacks |
|
144 | ## IE hacks |
@@ -9,6 +9,10 b'' | |||||
9 | <%def name="page_nav()"> |
|
9 | <%def name="page_nav()"> | |
10 | ${self.menu('home')} |
|
10 | ${self.menu('home')} | |
11 | </%def> |
|
11 | </%def> | |
|
12 | <%def name="head_extra()"> | |||
|
13 | <link href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('ATOM journal feed')}" type="application/atom+xml" /> | |||
|
14 | <link href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('RSS journal feed')}" type="application/rss+xml" /> | |||
|
15 | </%def> | |||
12 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
13 |
|
17 | |||
14 | <div class="box box-left"> |
|
18 | <div class="box box-left"> | |
@@ -23,7 +27,7 b'' | |||||
23 | <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span> |
|
27 | <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span> | |
24 | </li> |
|
28 | </li> | |
25 | <li> |
|
29 | <li> | |
26 |
<span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/atom |
|
30 | <span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span> | |
27 | </li> |
|
31 | </li> | |
28 | </ul> |
|
32 | </ul> | |
29 | </div> |
|
33 | </div> |
@@ -9,32 +9,35 b'' | |||||
9 | <%def name="page_nav()"> |
|
9 | <%def name="page_nav()"> | |
10 | ${self.menu('home')} |
|
10 | ${self.menu('home')} | |
11 | </%def> |
|
11 | </%def> | |
|
12 | <%def name="head_extra()"> | |||
|
13 | <link href="${h.url('public_journal_atom')}" rel="alternate" title="${_('ATOM public journal feed')}" type="application/atom+xml" /> | |||
|
14 | <link href="${h.url('public_journal_rss')}" rel="alternate" title="${_('RSS public journal feed')}" type="application/rss+xml" /> | |||
|
15 | </%def> | |||
12 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
13 |
|
17 | |||
14 |
|
|
18 | <div class="box"> | |
15 |
|
|
19 | <!-- box / title --> | |
16 |
|
|
20 | <div class="title"> | |
17 |
|
|
21 | <h5>${_('Public Journal')}</h5> | |
18 |
|
|
22 | <ul class="links"> | |
19 | <li> |
|
23 | <li> | |
20 |
|
|
24 | <span><a href="${h.url('public_journal_rss')}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span> | |
21 |
|
|
25 | </li> | |
22 |
|
|
26 | <li> | |
23 |
|
|
27 | <span><a href="${h.url('public_journal_atom')}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span> | |
24 |
|
|
28 | </li> | |
25 |
|
|
29 | </ul> | |
26 |
|
30 | </div> | ||
27 | </div> |
|
31 | <script type="text/javascript"> | |
28 | <script type="text/javascript"> |
|
32 | function show_more_event(){ | |
29 | function show_more_event(){ |
|
33 | YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){ | |
30 | YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){ |
|
34 | var el = e.target; | |
31 | var el = e.target; |
|
35 | YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); | |
32 |
|
|
36 | YUD.setStyle(el.parentNode,'display','none'); | |
33 | YUD.setStyle(el.parentNode,'display','none'); |
|
37 | }); | |
34 | }); |
|
38 | } | |
35 | } |
|
39 | </script> | |
36 | </script> |
|
40 | <div id="journal">${c.journal_data}</div> | |
37 | <div id="journal">${c.journal_data}</div> |
|
41 | </div> | |
38 | </div> |
|
|||
39 |
|
42 | |||
40 | </%def> |
|
43 | </%def> |
@@ -16,6 +16,11 b'' | |||||
16 | ${self.menu('summary')} |
|
16 | ${self.menu('summary')} | |
17 | </%def> |
|
17 | </%def> | |
18 |
|
18 | |||
|
19 | <%def name="head_extra()"> | |||
|
20 | <link href="${h.url('atom_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('repo %s ATOM feed') % c.repo_name}" type="application/atom+xml" /> | |||
|
21 | <link href="${h.url('rss_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('repo %s RSS feed') % c.repo_name}" type="application/rss+xml" /> | |||
|
22 | </%def> | |||
|
23 | ||||
19 | <%def name="main()"> |
|
24 | <%def name="main()"> | |
20 | <% |
|
25 | <% | |
21 | summary = lambda n:{False:'summary-short'}.get(n) |
|
26 | summary = lambda n:{False:'summary-short'}.get(n) |
General Comments 0
You need to be logged in to leave comments.
Login now