##// END OF EJS Templates
Add API access to personal journal, and forbid anonymous access on them
marcink -
r2410:a1595b6e beta
parent child Browse files
Show More
@@ -83,6 +83,7 b' class JournalController(BaseController):'
83 return render('journal/journal.html')
83 return render('journal/journal.html')
84
84
85 @LoginRequired(api_access=True)
85 @LoginRequired(api_access=True)
86 @NotAnonymous()
86 def journal_atom(self):
87 def journal_atom(self):
87 """
88 """
88 Produce an atom-1.0 feed via feedgenerator module
89 Produce an atom-1.0 feed via feedgenerator module
@@ -94,6 +95,7 b' class JournalController(BaseController):'
94 return self._atom_feed(following, public=False)
95 return self._atom_feed(following, public=False)
95
96
96 @LoginRequired(api_access=True)
97 @LoginRequired(api_access=True)
98 @NotAnonymous()
97 def journal_rss(self):
99 def journal_rss(self):
98 """
100 """
99 Produce an rss feed via feedgenerator module
101 Produce an rss feed via feedgenerator module
@@ -20,10 +20,10 b''
20 <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
20 <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
21 </li>
21 </li>
22 <li>
22 <li>
23 <span><a href="${h.url('journal_rss')}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span>
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/atom.png')}"/></a></span>
24 </li>
24 </li>
25 <li>
25 <li>
26 <span><a href="${h.url('journal_atom')}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span>
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/rss_16.png')}"/></a></span>
27 </li>
27 </li>
28 </ul>
28 </ul>
29 </div>
29 </div>
General Comments 0
You need to be logged in to leave comments. Login now