Mercurial > kallithea
diff rhodecode/templates/index.html @ 1122:31e82d872631 beta
disabled api key for anonymous users, and added api_key to rss/atom links for other users
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 09 Mar 2011 20:46:20 +0100 |
parents | 90eadff2c2a8 |
children | 01fe71db71f6 |
line wrap: on
line diff
--- a/rhodecode/templates/index.html Wed Mar 09 20:26:02 2011 +0100 +++ b/rhodecode/templates/index.html Wed Mar 09 20:46:20 2011 +0100 @@ -107,10 +107,18 @@ </td> <td title="${repo['contact']}">${h.person(repo['contact'])}</td> <td> - <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> + %if c.rhodecode_user.username != 'default': + <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a> + %else: + <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> + %endif: </td> <td> + %if c.rhodecode_user.username != 'default': + <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a> + %else: <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> + %endif: </td> </tr> %endfor