annotate rhodecode/templates/journal/public_journal.html @ 2413:6bef2a9f73e2 beta

added discoverable rss/atom links in pages
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 07 Jun 2012 14:23:28 +0200
parents 761e00380370
children 2bfcec6a3985
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1085
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <%inherit file="/base/base.html"/>
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <%def name="title()">
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 ${_('Journal')} - ${c.rhodecode_name}
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 </%def>
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 <%def name="breadcrumbs()">
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 ${c.rhodecode_name}
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 </%def>
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 <%def name="page_nav()">
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 ${self.menu('home')}
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 </%def>
2413
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
12 <%def name="head_extra()">
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
13 <link href="${h.url('public_journal_atom')}" rel="alternate" title="${_('ATOM public journal feed')}" type="application/atom+xml" />
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
14 <link href="${h.url('public_journal_rss')}" rel="alternate" title="${_('RSS public journal feed')}" type="application/rss+xml" />
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
15 </%def>
1085
3fe3285868d1 implemented public journal for anonymous users, admin can control which repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 <%def name="main()">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1087
diff changeset
17
2413
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
18 <div class="box">
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
19 <!-- box / title -->
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
20 <div class="title">
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
21 <h5>${_('Public Journal')}</h5>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
22 <ul class="links">
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
23 <li>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
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>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
25 </li>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
26 <li>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
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>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
28 </li>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
29 </ul>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
30 </div>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
31 <script type="text/javascript">
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
32 function show_more_event(){
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
33 YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
34 var el = e.target;
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
35 YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
36 YUD.setStyle(el.parentNode,'display','none');
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
37 });
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
38 }
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
39 </script>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
40 <div id="journal">${c.journal_data}</div>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2409
diff changeset
41 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1087
diff changeset
42
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1087
diff changeset
43 </%def>