diff --git a/rhodecode/templates/journal/journal.html b/rhodecode/templates/journal/journal.html --- a/rhodecode/templates/journal/journal.html +++ b/rhodecode/templates/journal/journal.html @@ -10,60 +10,211 @@ ${self.menu('home')} <%def name="main()"> - +
${_('Journal')}
+
-
${c.journal_data}
-
-
${_('Following')}
+
+ + ${_('My repos')} / ${_('Watched')} +
+ %if h.HasPermissionAny('hg.admin','hg.create.repository')(): + + %endif +
+ +
+ %if c.user_repos: +
+ + + + + + + + + + + <%namespace name="dt" file="/_data_table/_dt_elements.html"/> + %for repo in c.user_repos: + + ##QUICK MENU + + ##REPO NAME AND ICONS + + ##LAST REVISION + + ## + + + + %endfor + +
${_('Name')}${_('Tip')}${_('Action')}${_('Action')}
+ ${dt.quick_menu(repo['name'])} + + ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))} + + ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])} + ${_('private')} + ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')} + ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} + ${h.end_form()} +
+
+ %else: +
+ ${_('No repositories yet')} + %if h.HasPermissionAny('hg.admin','hg.create.repository')(): + ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")} + %endif +
+ %endif
-
- %if c.following: - %for entry in c.following: -
- %if entry.follows_user_id: - ${_('user')} - ${entry.follows_user.full_contact} - %endif - - %if entry.follows_repo_id: - -
- - -
- %if entry.follows_repository.private: - ${_('private repository')} - %else: - ${_('public repository')} - %endif - - ${h.link_to(entry.follows_repository.repo_name,h.url('summary_home', - repo_name=entry.follows_repository.repo_name))} - - %endif -
- %endfor - %else: - ${_('You are not following any users or repositories')} - %endif + + -
- +
+ + +