Mercurial > kallithea
changeset 2304:f1b76a558a66 beta
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
author | Vincent Duvert <vincent@duvert.net> |
---|---|
date | Sat, 19 May 2012 12:13:58 +0200 |
parents | 7090e394df06 |
children | 02e5d6068d37 |
files | rhodecode/templates/_data_table/_dt_elements.html rhodecode/templates/admin/repos/repos.html rhodecode/templates/admin/users/user_edit_my_account.html rhodecode/templates/data_table/_dt_elements.html rhodecode/templates/index_base.html rhodecode/templates/journal/journal.html |
diffstat | 6 files changed, 93 insertions(+), 93 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/_data_table/_dt_elements.html Sat May 19 22:56:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +0,0 @@ -## DATA TABLE RE USABLE ELEMENTS -## usage: -## <%namespace name="dt" file="/_data_table/_dt_elements.html"/> - -<%def name="quick_menu(repo_name)"> - <ul class="menu_items hidden"> - <li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li> - <li> - <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo_name)}"> - <span class="icon"> - <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> - </span> - <span>${_('Summary')}</span> - </a> - </li> - <li> - <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo_name)}"> - <span class="icon"> - <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> - </span> - <span>${_('Changelog')}</span> - </a> - </li> - <li> - <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo_name)}"> - <span class="icon"> - <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> - </span> - <span>${_('Files')}</span> - </a> - </li> - <li> - <a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}"> - <span class="icon"> - <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" /> - </span> - <span>${_('Fork')}</span> - </a> - </li> - </ul> -</%def> - -<%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)"> - <% - def get_name(name,short_name=short_name): - if short_name: - return name.split('/')[-1] - else: - return name - %> - <div style="white-space: nowrap"> - ##TYPE OF REPO - %if h.is_hg(rtype): - <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> - %elif h.is_git(rtype): - <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> - %endif - - ##PRIVATE/PUBLIC - %if private: - <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/> - %else: - <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/> - %endif - - ##NAME - %if admin: - ${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")} - %else: - ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")} - %endif - %if fork_of: - <a href="${h.url('summary_home',repo_name=fork_of)}"> - <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a> - %endif - </div> -</%def> - - - -<%def name="revision(name,rev,tip,author,last_msg)"> - <div> - %if rev >= 0: - <pre><a title="${h.tooltip('%s:\n\n%s' % (author,last_msg))}" class="tooltip" href="${h.url('changeset_home',repo_name=name,revision=tip)}">${'r%s:%s' % (rev,h.short_id(tip))}</a></pre> - %else: - ${_('No changesets yet')} - %endif - </div> -</%def>
--- a/rhodecode/templates/admin/repos/repos.html Sat May 19 22:56:32 2012 +0200 +++ b/rhodecode/templates/admin/repos/repos.html Sat May 19 12:13:58 2012 +0200 @@ -27,7 +27,7 @@ <div class="table"> <div id='repos_list_wrap' class="yui-skin-sam"> <%cnt=0%> - <%namespace name="dt" file="/_data_table/_dt_elements.html"/> + <%namespace name="dt" file="/data_table/_dt_elements.html"/> <table id="repos_list"> <thead>
--- a/rhodecode/templates/admin/users/user_edit_my_account.html Sat May 19 22:56:32 2012 +0200 +++ b/rhodecode/templates/admin/users/user_edit_my_account.html Sat May 19 12:13:58 2012 +0200 @@ -136,7 +136,7 @@ <th class="left">${_('Action')}</th> </thead> <tbody> - <%namespace name="dt" file="/_data_table/_dt_elements.html"/> + <%namespace name="dt" file="/data_table/_dt_elements.html"/> %if c.user_repos: %for repo in c.user_repos: <tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rhodecode/templates/data_table/_dt_elements.html Sat May 19 12:13:58 2012 +0200 @@ -0,0 +1,89 @@ +## DATA TABLE RE USABLE ELEMENTS +## usage: +## <%namespace name="dt" file="/data_table/_dt_elements.html"/> + +<%def name="quick_menu(repo_name)"> + <ul class="menu_items hidden"> + <li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li> + <li> + <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo_name)}"> + <span class="icon"> + <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> + </span> + <span>${_('Summary')}</span> + </a> + </li> + <li> + <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo_name)}"> + <span class="icon"> + <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> + </span> + <span>${_('Changelog')}</span> + </a> + </li> + <li> + <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo_name)}"> + <span class="icon"> + <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> + </span> + <span>${_('Files')}</span> + </a> + </li> + <li> + <a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}"> + <span class="icon"> + <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" /> + </span> + <span>${_('Fork')}</span> + </a> + </li> + </ul> +</%def> + +<%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)"> + <% + def get_name(name,short_name=short_name): + if short_name: + return name.split('/')[-1] + else: + return name + %> + <div style="white-space: nowrap"> + ##TYPE OF REPO + %if h.is_hg(rtype): + <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> + %elif h.is_git(rtype): + <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> + %endif + + ##PRIVATE/PUBLIC + %if private: + <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/> + %else: + <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/> + %endif + + ##NAME + %if admin: + ${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")} + %else: + ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")} + %endif + %if fork_of: + <a href="${h.url('summary_home',repo_name=fork_of)}"> + <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a> + %endif + </div> +</%def> + + + +<%def name="revision(name,rev,tip,author,last_msg)"> + <div> + %if rev >= 0: + <pre><a title="${h.tooltip('%s:\n\n%s' % (author,last_msg))}" class="tooltip" href="${h.url('changeset_home',repo_name=name,revision=tip)}">${'r%s:%s' % (rev,h.short_id(tip))}</a></pre> + %else: + ${_('No changesets yet')} + %endif + </div> +</%def>
--- a/rhodecode/templates/index_base.html Sat May 19 22:56:32 2012 +0200 +++ b/rhodecode/templates/index_base.html Sat May 19 12:13:58 2012 +0200 @@ -57,7 +57,7 @@ </div> <div id='repos_list_wrap' class="yui-skin-sam"> <%cnt=0%> - <%namespace name="dt" file="/_data_table/_dt_elements.html"/> + <%namespace name="dt" file="/data_table/_dt_elements.html"/> <table id="repos_list"> <thead>
--- a/rhodecode/templates/journal/journal.html Sat May 19 22:56:32 2012 +0200 +++ b/rhodecode/templates/journal/journal.html Sat May 19 12:13:58 2012 +0200 @@ -53,7 +53,7 @@ <th class="left">${_('Action')}</th> </thead> <tbody> - <%namespace name="dt" file="/_data_table/_dt_elements.html"/> + <%namespace name="dt" file="/data_table/_dt_elements.html"/> %for repo in c.user_repos: <tr> ##QUICK MENU