Show More
@@ -2309,4 +2309,11 b' div#legend_container table td,div#legend' | |||
|
2309 | 2309 | border:none !important; |
|
2310 | 2310 | height:20px !important; |
|
2311 | 2311 | padding:0 !important; |
|
2312 | } No newline at end of file | |
|
2312 | } | |
|
2313 | ||
|
2314 | #q_filter{ | |
|
2315 | border: 0px; | |
|
2316 | color:#CDCDCD; | |
|
2317 | padding-left:3px | |
|
2318 | } | |
|
2319 |
@@ -270,8 +270,10 b'' | |||
|
270 | 270 | ##<script type="text/javascript" src="/js/yui/container/container.js"></script> |
|
271 | 271 | ##<script type="text/javascript" src="/js/yui/datasource/datasource.js"></script> |
|
272 | 272 | ##<script type="text/javascript" src="/js/yui/autocomplete/autocomplete.js"></script> |
|
273 | ##<script type="text/javascript" src="/js/yui/selector/selector-min.js"></script> | |
|
273 | 274 | |
|
274 | 275 | <script type="text/javascript" src="/js/yui2.js"></script> |
|
276 | <script type="text/javascript" src="/js/yui/selector/selector-min.js"></script> | |
|
275 | 277 | <!--[if IE]><script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script><![endif]--> |
|
276 | 278 | <script type="text/javascript" src="/js/yui.flot.js"></script> |
|
277 | 279 | </%def> |
@@ -27,7 +27,9 b'' | |||
|
27 | 27 | <div class="box"> |
|
28 | 28 | <!-- box / title --> |
|
29 | 29 | <div class="title"> |
|
30 |
<h5>${_('Dashboard')} |
|
|
30 | <h5>${_('Dashboard')} | |
|
31 | <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> | |
|
32 | </h5> | |
|
31 | 33 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): |
|
32 | 34 | <ul class="links"> |
|
33 | 35 | <li> |
@@ -38,7 +40,7 b'' | |||
|
38 | 40 | </div> |
|
39 | 41 | <!-- end box / title --> |
|
40 | 42 | <div class="table"> |
|
41 |
|
|
|
43 | <table> | |
|
42 | 44 | <thead> |
|
43 | 45 | <tr> |
|
44 | 46 | <th class="left">${get_sort(_('Name'))}</th> |
@@ -50,61 +52,108 b'' | |||
|
50 | 52 | <th class="left">${_('Atom')}</th> |
|
51 | 53 | </tr> |
|
52 | 54 | </thead> |
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
55 | <tbody> | |
|
56 | %for cnt,repo in enumerate(c.repos_list): | |
|
57 | %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): | |
|
58 | <tr class="parity${cnt%2}"> | |
|
59 | <td> | |
|
60 | %if repo['repo'].dbrepo.repo_type =='hg': | |
|
61 | <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="/images/icons/hgicon.png"/> | |
|
62 | %elif repo['repo'].dbrepo.repo_type =='git': | |
|
63 | <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="/images/icons/giticon.png"/> | |
|
64 | %else: | |
|
65 | ||
|
66 | %endif | |
|
67 | ||
|
68 | %if repo['repo'].dbrepo.private: | |
|
69 | <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="/images/icons/lock.png"/> | |
|
70 | %else: | |
|
71 | <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="/images/icons/lock_open.png"/> | |
|
72 | %endif | |
|
73 | ${h.link_to(repo['name'], | |
|
74 | h.url('summary_home',repo_name=repo['name']),class_="repo_name")} | |
|
75 | %if repo['repo'].dbrepo.fork: | |
|
76 | <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}"> | |
|
77 | <img class="icon" alt="${_('fork')}" | |
|
78 | title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}" | |
|
79 | src="/images/icons/arrow_divide.png"/></a> | |
|
80 | %endif | |
|
81 | </td> | |
|
82 | <td><span class="tooltip" tooltip_title="${repo['description']}"> | |
|
83 | ${h.truncate(repo['description'],60)}</span> | |
|
84 | </td> | |
|
85 | <td><span class="tooltip" tooltip_title="${repo['last_change']}"> | |
|
86 | ${h.age(repo['last_change'])} </span> | |
|
87 | </td> | |
|
88 | <td> | |
|
89 | %if repo['rev']>=0: | |
|
90 | ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])), | |
|
91 | h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), | |
|
92 | class_="tooltip", | |
|
93 | tooltip_title=h.tooltip(repo['last_msg']))} | |
|
94 | %else: | |
|
95 | ${_('No changesets yet')} | |
|
96 | %endif | |
|
97 | </td> | |
|
98 | <td title="${repo['contact']}">${h.person(repo['contact'])}</td> | |
|
99 | <td> | |
|
100 | <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> | |
|
101 | </td> | |
|
102 | <td> | |
|
103 | <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> | |
|
104 | </td> | |
|
105 | </tr> | |
|
106 | %endif | |
|
107 | %endfor | |
|
108 | </tbody> | |
|
109 | </table> | |
|
108 | 110 | </div> |
|
109 |
</div> |
|
|
111 | </div> | |
|
112 | ||
|
113 | ||
|
114 | <script type="text/javascript"> | |
|
115 | var D = YAHOO.util.Dom; | |
|
116 | var E = YAHOO.util.Event; | |
|
117 | var S = YAHOO.util.Selector; | |
|
118 | ||
|
119 | var q_filter = D.get('q_filter'); | |
|
120 | var F = YAHOO.namespace('q_filter'); | |
|
121 | ||
|
122 | E.on(q_filter,'click',function(){ | |
|
123 | q_filter.value = ''; | |
|
124 | }); | |
|
125 | ||
|
126 | F.filterTimeout = null; | |
|
127 | ||
|
128 | F.updateFilter = function() { | |
|
129 | // Reset timeout | |
|
130 | F.filterTimeout = null; | |
|
131 | ||
|
132 | var obsolete = []; | |
|
133 | var nodes = S.query('div.table tr td a.repo_name'); | |
|
134 | var req = D.get('q_filter').value; | |
|
135 | for (n in nodes){ | |
|
136 | D.setStyle(nodes[n].parentNode.parentNode,'display','') | |
|
137 | } | |
|
138 | if (req){ | |
|
139 | for (n in nodes){ | |
|
140 | if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) { | |
|
141 | obsolete.push(nodes[n]); | |
|
142 | } | |
|
143 | } | |
|
144 | if(obsolete){ | |
|
145 | for (n in obsolete){ | |
|
146 | D.setStyle(obsolete[n].parentNode.parentNode,'display','none'); | |
|
147 | } | |
|
148 | } | |
|
149 | } | |
|
150 | } | |
|
151 | ||
|
152 | E.on(q_filter,'keyup',function(e){ | |
|
153 | clearTimeout(F.filterTimeout); | |
|
154 | setTimeout(F.updateFilter,600); | |
|
155 | }); | |
|
156 | ||
|
157 | </script> | |
|
158 | ||
|
110 | 159 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now