Show More
@@ -0,0 +1,89 b'' | |||||
|
1 | ## DATA TABLE RE USABLE ELEMENTS | |||
|
2 | ## usage: | |||
|
3 | ## <%namespace name="dt" file="/data_table/_dt_elements.html"/> | |||
|
4 | ||||
|
5 | <%def name="quick_menu(repo_name)"> | |||
|
6 | <ul class="menu_items hidden"> | |||
|
7 | <li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li> | |||
|
8 | <li> | |||
|
9 | <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo_name)}"> | |||
|
10 | <span class="icon"> | |||
|
11 | <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> | |||
|
12 | </span> | |||
|
13 | <span>${_('Summary')}</span> | |||
|
14 | </a> | |||
|
15 | </li> | |||
|
16 | <li> | |||
|
17 | <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo_name)}"> | |||
|
18 | <span class="icon"> | |||
|
19 | <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> | |||
|
20 | </span> | |||
|
21 | <span>${_('Changelog')}</span> | |||
|
22 | </a> | |||
|
23 | </li> | |||
|
24 | <li> | |||
|
25 | <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo_name)}"> | |||
|
26 | <span class="icon"> | |||
|
27 | <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> | |||
|
28 | </span> | |||
|
29 | <span>${_('Files')}</span> | |||
|
30 | </a> | |||
|
31 | </li> | |||
|
32 | <li> | |||
|
33 | <a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}"> | |||
|
34 | <span class="icon"> | |||
|
35 | <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" /> | |||
|
36 | </span> | |||
|
37 | <span>${_('Fork')}</span> | |||
|
38 | </a> | |||
|
39 | </li> | |||
|
40 | </ul> | |||
|
41 | </%def> | |||
|
42 | ||||
|
43 | <%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)"> | |||
|
44 | <% | |||
|
45 | def get_name(name,short_name=short_name): | |||
|
46 | if short_name: | |||
|
47 | return name.split('/')[-1] | |||
|
48 | else: | |||
|
49 | return name | |||
|
50 | %> | |||
|
51 | <div style="white-space: nowrap"> | |||
|
52 | ##TYPE OF REPO | |||
|
53 | %if h.is_hg(rtype): | |||
|
54 | <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> | |||
|
55 | %elif h.is_git(rtype): | |||
|
56 | <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> | |||
|
57 | %endif | |||
|
58 | ||||
|
59 | ##PRIVATE/PUBLIC | |||
|
60 | %if private: | |||
|
61 | <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/> | |||
|
62 | %else: | |||
|
63 | <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/> | |||
|
64 | %endif | |||
|
65 | ||||
|
66 | ##NAME | |||
|
67 | %if admin: | |||
|
68 | ${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")} | |||
|
69 | %else: | |||
|
70 | ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")} | |||
|
71 | %endif | |||
|
72 | %if fork_of: | |||
|
73 | <a href="${h.url('summary_home',repo_name=fork_of)}"> | |||
|
74 | <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a> | |||
|
75 | %endif | |||
|
76 | </div> | |||
|
77 | </%def> | |||
|
78 | ||||
|
79 | ||||
|
80 | ||||
|
81 | <%def name="revision(name,rev,tip,author,last_msg)"> | |||
|
82 | <div> | |||
|
83 | %if rev >= 0: | |||
|
84 | <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> | |||
|
85 | %else: | |||
|
86 | ${_('No changesets yet')} | |||
|
87 | %endif | |||
|
88 | </div> | |||
|
89 | </%def> |
@@ -27,7 +27,7 b'' | |||||
27 | <div class="table"> |
|
27 | <div class="table"> | |
28 | <div id='repos_list_wrap' class="yui-skin-sam"> |
|
28 | <div id='repos_list_wrap' class="yui-skin-sam"> | |
29 | <%cnt=0%> |
|
29 | <%cnt=0%> | |
30 |
<%namespace name="dt" file="/ |
|
30 | <%namespace name="dt" file="/data_table/_dt_elements.html"/> | |
31 |
|
31 | |||
32 | <table id="repos_list"> |
|
32 | <table id="repos_list"> | |
33 | <thead> |
|
33 | <thead> |
@@ -136,7 +136,7 b'' | |||||
136 | <th class="left">${_('Action')}</th> |
|
136 | <th class="left">${_('Action')}</th> | |
137 | </thead> |
|
137 | </thead> | |
138 | <tbody> |
|
138 | <tbody> | |
139 |
<%namespace name="dt" file="/ |
|
139 | <%namespace name="dt" file="/data_table/_dt_elements.html"/> | |
140 | %if c.user_repos: |
|
140 | %if c.user_repos: | |
141 | %for repo in c.user_repos: |
|
141 | %for repo in c.user_repos: | |
142 | <tr> |
|
142 | <tr> |
@@ -57,7 +57,7 b'' | |||||
57 | </div> |
|
57 | </div> | |
58 | <div id='repos_list_wrap' class="yui-skin-sam"> |
|
58 | <div id='repos_list_wrap' class="yui-skin-sam"> | |
59 | <%cnt=0%> |
|
59 | <%cnt=0%> | |
60 |
<%namespace name="dt" file="/ |
|
60 | <%namespace name="dt" file="/data_table/_dt_elements.html"/> | |
61 |
|
61 | |||
62 | <table id="repos_list"> |
|
62 | <table id="repos_list"> | |
63 | <thead> |
|
63 | <thead> |
@@ -53,7 +53,7 b'' | |||||
53 | <th class="left">${_('Action')}</th> |
|
53 | <th class="left">${_('Action')}</th> | |
54 | </thead> |
|
54 | </thead> | |
55 | <tbody> |
|
55 | <tbody> | |
56 |
<%namespace name="dt" file="/ |
|
56 | <%namespace name="dt" file="/data_table/_dt_elements.html"/> | |
57 | %for repo in c.user_repos: |
|
57 | %for repo in c.user_repos: | |
58 | <tr> |
|
58 | <tr> | |
59 | ##QUICK MENU |
|
59 | ##QUICK MENU |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now