##// END OF EJS Templates
ui fixes
marcink -
r1650:e0383813 beta
parent child Browse files
Show More
@@ -1,226 +1,227 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <%inherit file="/base/base.html"/>
3 3
4 4 <%def name="title()">
5 5 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
6 6 </%def>
7 7
8 8 <%def name="breadcrumbs_links()">
9 9 ${_('My Account')}
10 10 </%def>
11 11
12 12 <%def name="page_nav()">
13 13 ${self.menu('admin')}
14 14 </%def>
15 15
16 16 <%def name="main()">
17 17
18 18 <div class="box box-left">
19 19 <!-- box / title -->
20 20 <div class="title">
21 21 ${self.breadcrumbs()}
22 22 </div>
23 23 <!-- end box / title -->
24 24 <div>
25 25 ${h.form(url('admin_settings_my_account_update'),method='put')}
26 26 <div class="form">
27 27
28 28 <div class="field">
29 29 <div class="gravatar_box">
30 30 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
31 31 <p>
32 32 %if c.use_gravatar:
33 33 <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong>
34 34 <br/>${_('Using')} ${c.user.email}
35 35 %else:
36 36 <br/>${c.user.email}
37 37 %endif
38 38 </p>
39 39 </div>
40 40 </div>
41 41 <div class="field">
42 42 <div class="label">
43 43 <label>${_('API key')}</label> ${c.user.api_key}
44 44 </div>
45 45 </div>
46 46 <div class="fields">
47 47 <div class="field">
48 48 <div class="label">
49 49 <label for="username">${_('Username')}:</label>
50 50 </div>
51 51 <div class="input">
52 52 ${h.text('username',class_="medium")}
53 53 </div>
54 54 </div>
55 55
56 56 <div class="field">
57 57 <div class="label">
58 58 <label for="new_password">${_('New password')}:</label>
59 59 </div>
60 60 <div class="input">
61 61 ${h.password('new_password',class_="medium",autocomplete="off")}
62 62 </div>
63 63 </div>
64 64
65 65 <div class="field">
66 66 <div class="label">
67 67 <label for="password_confirmation">${_('New password confirmation')}:</label>
68 68 </div>
69 69 <div class="input">
70 70 ${h.password('password_confirmation',class_="medium",autocomplete="off")}
71 71 </div>
72 72 </div>
73 73
74 74 <div class="field">
75 75 <div class="label">
76 76 <label for="name">${_('First Name')}:</label>
77 77 </div>
78 78 <div class="input">
79 79 ${h.text('name',class_="medium")}
80 80 </div>
81 81 </div>
82 82
83 83 <div class="field">
84 84 <div class="label">
85 85 <label for="lastname">${_('Last Name')}:</label>
86 86 </div>
87 87 <div class="input">
88 88 ${h.text('lastname',class_="medium")}
89 89 </div>
90 90 </div>
91 91
92 92 <div class="field">
93 93 <div class="label">
94 94 <label for="email">${_('Email')}:</label>
95 95 </div>
96 96 <div class="input">
97 97 ${h.text('email',class_="medium")}
98 98 </div>
99 99 </div>
100 100
101 101 <div class="buttons">
102 102 ${h.submit('save',_('Save'),class_="ui-button")}
103 103 ${h.reset('reset',_('Reset'),class_="ui-button")}
104 104 </div>
105 105 </div>
106 106 </div>
107 107 ${h.end_form()}
108 108 </div>
109 109 </div>
110 110
111 111 <div class="box box-right">
112 112 <!-- box / title -->
113 113 <div class="title">
114 <h5>${_('My repositories')}
115 <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...')}"/>
114 <h5>
115 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
116 ${_('My repositories')}
116 117 </h5>
117 118 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
118 119 <ul class="links">
119 120 <li>
120 121 <span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span>
121 122 </li>
122 123 </ul>
123 124 %endif
124 125 </div>
125 126 <!-- end box / title -->
126 127 <div class="table">
127 128 <table>
128 129 <thead>
129 130 <tr>
130 131 <th class="left">${_('Name')}</th>
131 132 <th class="left">${_('revision')}</th>
132 133 <th colspan="2" class="left">${_('action')}</th>
133 134 </thead>
134 135 <tbody>
135 136 %if c.user_repos:
136 137 %for repo in c.user_repos:
137 138 <tr>
138 139 <td>
139 140 %if repo['dbrepo']['repo_type'] =='hg':
140 141 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url("/images/icons/hgicon.png")}"/>
141 142 %elif repo['dbrepo']['repo_type'] =='git':
142 143 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url("/images/icons/giticon.png")}"/>
143 144 %else:
144 145
145 146 %endif
146 147 %if repo['dbrepo']['private']:
147 148 <img class="icon" alt="${_('private')}" src="${h.url("/images/icons/lock.png")}"/>
148 149 %else:
149 150 <img class="icon" alt="${_('public')}" src="${h.url("/images/icons/lock_open.png")}"/>
150 151 %endif
151 152
152 153 ${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']),class_="repo_name")}
153 154 %if repo['dbrepo_fork']:
154 155 <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}">
155 156 <img class="icon" alt="${_('public')}"
156 157 title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}"
157 158 src="${h.url('/images/icons/arrow_divide.png')}"/></a>
158 159 %endif
159 160 </td>
160 161 <td><span class="tooltip" title="${repo['last_change']}">${("r%s:%s") % (repo['rev'],h.short_id(repo['tip']))}</span></td>
161 162 <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td>
162 163 <td>
163 164 ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
164 165 ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
165 166 ${h.end_form()}
166 167 </td>
167 168 </tr>
168 169 %endfor
169 170 %else:
170 171 <div style="padding:5px 0px 10px 0px;">
171 172 ${_('No repositories yet')}
172 173 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
173 174 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-button-small")}
174 175 %endif
175 176 </div>
176 177 %endif
177 178 </tbody>
178 179 </table>
179 180 </div>
180 181
181 182 </div>
182 183 <script type="text/javascript">
183 184 var D = YAHOO.util.Dom;
184 185 var E = YAHOO.util.Event;
185 186 var S = YAHOO.util.Selector;
186 187
187 188 var q_filter = D.get('q_filter');
188 189 var F = YAHOO.namespace('q_filter');
189 190
190 191 E.on(q_filter,'click',function(){
191 192 q_filter.value = '';
192 193 });
193 194
194 195 F.filterTimeout = null;
195 196
196 197 F.updateFilter = function() {
197 198 // Reset timeout
198 199 F.filterTimeout = null;
199 200
200 201 var obsolete = [];
201 202 var nodes = S.query('div.table tr td a.repo_name');
202 203 var req = q_filter.value.toLowerCase();
203 204 for (n in nodes){
204 205 D.setStyle(nodes[n].parentNode.parentNode,'display','')
205 206 }
206 207 if (req){
207 208 for (n in nodes){
208 209 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
209 210 obsolete.push(nodes[n]);
210 211 }
211 212 }
212 213 if(obsolete){
213 214 for (n in obsolete){
214 215 D.setStyle(obsolete[n].parentNode.parentNode,'display','none');
215 216 }
216 217 }
217 218 }
218 219 }
219 220
220 221 E.on(q_filter,'keyup',function(e){
221 222 clearTimeout(F.filterTimeout);
222 223 F.filterTimeout = setTimeout(F.updateFilter,600);
223 224 });
224 225
225 226 </script>
226 227 </%def>
@@ -1,8 +1,8 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <%inherit file="base/base.html"/>
3 3 <%def name="title()">${_('Dashboard')} - ${c.rhodecode_name}</%def>
4 <%def name="breadcrumbs()">${c.rhodecode_name}</%def>
4 <%def name="breadcrumbs()"></%def>
5 5 <%def name="page_nav()">${self.menu('home')}</%def>
6 6 <%def name="main()">
7 7 <%include file="index_base.html" args="parent=self"/>
8 8 </%def>
General Comments 0
You need to be logged in to leave comments. Login now