diff --git a/rhodecode/templates/index_base.html b/rhodecode/templates/index_base.html new file mode 100644 --- /dev/null +++ b/rhodecode/templates/index_base.html @@ -0,0 +1,201 @@ +<%page args="parent" /> + <%def name="get_sort(name)"> + <%name_slug = name.lower().replace(' ','_') %> + + %if name_slug == c.sort_slug: + %if c.sort_by.startswith('-'): + ${name}↑ + %else: + ${name}↓ + %endif: + %else: + ${name} + %endif + %def> + +
| ${_('Group name')} | +${_('Description')} | +${_('Number of repositories')} | +
|---|---|---|
|
+
+
+ |
+ ${gr.group_description} | +${gr.repositories.count()} | +
| ${get_sort(_('Name'))} | +${get_sort(_('Description'))} | +${get_sort(_('Last change'))} | +${get_sort(_('Tip'))} | +${get_sort(_('Owner'))} | +${_('RSS')} | +${_('Atom')} | +
|---|---|---|---|---|---|---|
|
+
+ ## TYPE OF REPO
+ %if repo['dbrepo']['repo_type'] =='hg':
+
+ |
+ ##DESCRIPTION
+ + ${h.truncate(repo['description'],60)} + | + ##LAST CHANGE ++ + ${h.age(repo['last_change'])} + | ++ %if repo['rev']>=0: + ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])), + h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), + class_="tooltip", + title=h.tooltip(repo['last_msg']))} + %else: + ${_('No changesets yet')} + %endif + | +${h.person(repo['contact'])} | ++ %if c.rhodecode_user.username != 'default': + + %else: + + %endif: + | ++ %if c.rhodecode_user.username != 'default': + + %else: + + %endif: + | +