Show More
@@ -0,0 +1,126 b'' | |||
|
1 | ## -*- coding: utf-8 -*- | |
|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
|
4 | <head> | |
|
5 | <title>${self.title()}</title> | |
|
6 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
|
7 | <meta name="robots" content="index, nofollow"/> | |
|
8 | <link rel="icon" href="${h.url("/images/icons/database_gear.png")}" type="image/png" /> | |
|
9 | ||
|
10 | <!-- stylesheets --> | |
|
11 | ${self.css()} | |
|
12 | ||
|
13 | %if c.ga_code: | |
|
14 | <!-- Analytics --> | |
|
15 | <script type="text/javascript"> | |
|
16 | var _gaq = _gaq || []; | |
|
17 | _gaq.push(['_setAccount', '${c.ga_code}']); | |
|
18 | _gaq.push(['_trackPageview']); | |
|
19 | ||
|
20 | (function() { | |
|
21 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
|
22 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
|
23 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
|
24 | })(); | |
|
25 | </script> | |
|
26 | %endif | |
|
27 | ||
|
28 | <!-- scripts --> | |
|
29 | ${self.js()} | |
|
30 | ||
|
31 | </head> | |
|
32 | ||
|
33 | <body id="body"> | |
|
34 | ${next.body()} | |
|
35 | </body> | |
|
36 | ||
|
37 | </html> | |
|
38 | ||
|
39 | <%def name="css()"> | |
|
40 | <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" /> | |
|
41 | <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" /> | |
|
42 | <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" /> | |
|
43 | </%def> | |
|
44 | ||
|
45 | <%def name="js()"> | |
|
46 | <script type="text/javascript"> | |
|
47 | if (typeof console == "undefined" || typeof console.log == "undefined") | |
|
48 | console = { log: function() {} } | |
|
49 | </script> | |
|
50 | ||
|
51 | % if False: | |
|
52 | <script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script> | |
|
53 | <script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script> | |
|
54 | <script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script> | |
|
55 | <script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script> | |
|
56 | <script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script> | |
|
57 | % else: | |
|
58 | <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script> | |
|
59 | <!--[if IE]> | |
|
60 | <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script> | |
|
61 | <![endif]--> | |
|
62 | <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script> | |
|
63 | % endif | |
|
64 | ||
|
65 | <script type="text/javascript"> | |
|
66 | var YUC = YAHOO.util.Connect; | |
|
67 | var YUD = YAHOO.util.Dom; | |
|
68 | var YUE = YAHOO.util.Event; | |
|
69 | </script> | |
|
70 | ||
|
71 | <script type="text/javascript"> | |
|
72 | var base_url = "${h.url('toggle_following')}"; | |
|
73 | function onSuccess(target){ | |
|
74 | ||
|
75 | var f = YUD.get(target.id); | |
|
76 | var f_cnt = YUD.get('current_followers_count'); | |
|
77 | ||
|
78 | if(f.getAttribute('class')=='follow'){ | |
|
79 | f.setAttribute('class','following'); | |
|
80 | f.setAttribute('title',"${_('Stop following this repository')}"); | |
|
81 | ||
|
82 | if(f_cnt){ | |
|
83 | var cnt = Number(f_cnt.innerHTML)+1; | |
|
84 | f_cnt.innerHTML = cnt; | |
|
85 | } | |
|
86 | ||
|
87 | } | |
|
88 | else{ | |
|
89 | f.setAttribute('class','follow'); | |
|
90 | f.setAttribute('title',"${_('Start following this repository')}"); | |
|
91 | if(f_cnt){ | |
|
92 | var cnt = Number(f_cnt.innerHTML)+1; | |
|
93 | f_cnt.innerHTML = cnt; | |
|
94 | } | |
|
95 | } | |
|
96 | } | |
|
97 | ||
|
98 | function toggleFollowingUser(target,fallows_user_id,token,user_id){ | |
|
99 | args = 'follows_user_id='+fallows_user_id; | |
|
100 | args+= '&auth_token='+token; | |
|
101 | if(user_id != undefined){ | |
|
102 | args+="&user_id="+user_id; | |
|
103 | } | |
|
104 | YUC.asyncRequest('POST',base_url,{ | |
|
105 | success:function(o){ | |
|
106 | onSuccess(target); | |
|
107 | } | |
|
108 | },args); return false; | |
|
109 | } | |
|
110 | ||
|
111 | function toggleFollowingRepo(target,fallows_repo_id,token,user_id){ | |
|
112 | ||
|
113 | args = 'follows_repo_id='+fallows_repo_id; | |
|
114 | args+= '&auth_token='+token; | |
|
115 | if(user_id != undefined){ | |
|
116 | args+="&user_id="+user_id; | |
|
117 | } | |
|
118 | YUC.asyncRequest('POST',base_url,{ | |
|
119 | success:function(o){ | |
|
120 | onSuccess(target); | |
|
121 | } | |
|
122 | },args); return false; | |
|
123 | } | |
|
124 | </script> | |
|
125 | ||
|
126 | </%def> No newline at end of file |
@@ -1,402 +1,303 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
|
4 | <head> | |
|
5 | <title>${next.title()}</title> | |
|
6 | <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" /> | |
|
7 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
|
8 | <meta name="robots" content="index, nofollow"/> | |
|
9 | <!-- stylesheets --> | |
|
10 | ${self.css()} | |
|
11 | <!-- scripts --> | |
|
12 | ${self.js()} | |
|
13 | %if c.ga_code: | |
|
14 | <script type="text/javascript"> | |
|
15 | var _gaq = _gaq || []; | |
|
16 | _gaq.push(['_setAccount', '${c.ga_code}']); | |
|
17 | _gaq.push(['_trackPageview']); | |
|
2 | <%inherit file="root.html"/> | |
|
18 | 3 | |
|
19 | (function() { | |
|
20 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
|
21 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
|
22 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
|
23 | })(); | |
|
24 | </script> | |
|
25 | %endif | |
|
26 | </head> | |
|
27 | <body> | |
|
28 | <!-- header --> | |
|
4 | <!-- HEADER --> | |
|
29 | 5 |
|
|
30 | 6 |
|
|
31 | 7 |
|
|
32 | 8 |
|
|
33 | 9 |
|
|
34 | 10 |
|
|
35 | 11 |
|
|
36 | 12 |
|
|
37 | 13 |
|
|
38 | 14 |
|
|
39 | 15 |
|
|
40 | 16 |
|
|
41 | 17 |
|
|
42 | 18 |
|
|
43 | 19 |
|
|
44 | 20 |
|
|
45 | 21 |
|
|
46 | 22 |
|
|
47 | 23 |
|
|
48 | 24 |
|
|
49 | 25 |
|
|
50 |
|
|
|
26 | ##(${c.unread_journal} | |
|
51 | 27 |
|
|
52 | 28 |
|
|
53 | 29 |
|
|
54 | 30 |
|
|
55 | 31 |
|
|
56 | 32 |
|
|
57 | 33 |
|
|
58 | 34 |
|
|
59 | 35 |
|
|
60 | 36 |
|
|
61 | <!-- logo --> | |
|
62 | 37 |
|
|
63 | 38 |
|
|
64 | 39 |
|
|
65 |
|
|
|
66 | <!-- menu --> | |
|
40 | <!-- MENU --> | |
|
67 | 41 |
|
|
68 |
|
|
|
42 | <!-- END MENU --> | |
|
43 | ${self.body()} | |
|
69 | 44 |
|
|
70 | 45 |
|
|
71 | <!-- end header --> | |
|
46 | <!-- END HEADER --> | |
|
72 | 47 | |
|
73 | 48 |
|
|
74 | 49 |
|
|
75 | 50 |
|
|
76 | 51 |
|
|
77 | 52 |
|
|
78 | 53 |
|
|
79 | 54 |
|
|
80 | 55 |
|
|
81 | 56 |
|
|
82 | 57 |
|
|
83 | 58 |
|
|
84 | 59 |
|
|
85 | 60 |
|
|
86 | 61 |
|
|
87 | 62 |
|
|
88 | 63 |
|
|
89 | 64 |
|
|
90 | 65 | |
|
91 | <!-- footer --> | |
|
66 | <!-- FOOTER --> | |
|
92 | 67 |
|
|
93 | 68 |
|
|
94 | 69 |
|
|
95 | <p class="footer-link">${h.link_to(_('Submit a bug'),h.url('bugtracker'))}</p> | |
|
96 | <p class="footer-link">${h.link_to(_('GPL license'),h.url('gpl_license'))}</p> | |
|
97 | <p class="footer-link-right"><a href="${h.url('rhodecode_official')}">RhodeCode</a> ${c.rhodecode_version} © 2010-2011 by Marcin Kuzminski</p> | |
|
70 | <p class="footer-link"> | |
|
71 | <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> | |
|
72 | </p> | |
|
73 | <p class="footer-link"> | |
|
74 | <a href="${h.url('gpl_license')}">${_('GPL license')}</a> | |
|
75 | </p> | |
|
76 | <p class="footer-link-right"> | |
|
77 | <a href="${h.url('rhodecode_official')}">RhodeCode</a> | |
|
78 | ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski | |
|
79 | </p> | |
|
98 | 80 |
|
|
99 | 81 |
|
|
100 | 82 |
|
|
101 | 83 |
|
|
102 | 84 |
|
|
103 | 85 |
|
|
104 | 86 |
|
|
105 | 87 |
|
|
106 | 88 |
|
|
107 | <!-- end footer --> | |
|
108 | </body> | |
|
109 | ||
|
110 | </html> | |
|
89 | <!-- END FOOTER --> | |
|
111 | 90 | |
|
112 | 91 |
### MAKO DEFS ### |
|
113 | 92 | <%def name="page_nav()"> |
|
114 | 93 |
|
|
115 | 94 | </%def> |
|
116 | 95 | |
|
96 | <%def name="breadcrumbs()"> | |
|
97 | <div class="breadcrumbs"> | |
|
98 | ${self.breadcrumbs_links()} | |
|
99 | </div> | |
|
100 | </%def> | |
|
101 | ||
|
102 | ||
|
117 | 103 | <%def name="menu(current=None)"> |
|
118 | 104 | <% |
|
119 | 105 | def is_current(selected): |
|
120 | 106 | if selected == current: |
|
121 | 107 | return h.literal('class="current"') |
|
122 | 108 | %> |
|
123 | 109 | %if current not in ['home','admin']: |
|
124 | 110 | ##REGULAR MENU |
|
125 | 111 | <ul id="quick"> |
|
126 | 112 | <!-- repo switcher --> |
|
127 | 113 | <li> |
|
128 | 114 | <a id="repo_switcher" title="${_('Switch repository')}" href="#"> |
|
129 | 115 | <span class="icon"> |
|
130 | 116 | <img src="${h.url("/images/icons/database.png")}" alt="${_('Products')}" /> |
|
131 | 117 | </span> |
|
132 | 118 | <span>↓</span> |
|
133 | 119 | </a> |
|
134 | 120 | <ul class="repo_switcher"> |
|
135 | 121 | %for repo in c.cached_repo_list: |
|
136 | 122 | |
|
137 | 123 | %if repo['dbrepo']['private']: |
|
138 | 124 | <li><img src="${h.url("/images/icons/lock.png")}" alt="${_('Private repository')}" class="repo_switcher_type"/>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li> |
|
139 | 125 | %else: |
|
140 | 126 | <li><img src="${h.url("/images/icons/lock_open.png")}" alt="${_('Public repository')}" class="repo_switcher_type" />${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li> |
|
141 | 127 | %endif |
|
142 | 128 | %endfor |
|
143 | 129 | </ul> |
|
144 | 130 | </li> |
|
145 | 131 | |
|
146 | 132 | <li ${is_current('summary')}> |
|
147 | 133 | <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
|
148 | 134 | <span class="icon"> |
|
149 | 135 | <img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" /> |
|
150 | 136 | </span> |
|
151 | 137 | <span>${_('Summary')}</span> |
|
152 | 138 | </a> |
|
153 | 139 | </li> |
|
154 | 140 | ##<li ${is_current('shortlog')}> |
|
155 | 141 | ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> |
|
156 | 142 | ## <span class="icon"> |
|
157 | 143 | ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" /> |
|
158 | 144 | ## </span> |
|
159 | 145 | ## <span>${_('Shortlog')}</span> |
|
160 | 146 | ## </a> |
|
161 | 147 | ##</li> |
|
162 | 148 | <li ${is_current('changelog')}> |
|
163 | 149 | <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
|
164 | 150 | <span class="icon"> |
|
165 | 151 | <img src="${h.url("/images/icons/time.png")}" alt="${_('Changelog')}" /> |
|
166 | 152 | </span> |
|
167 | 153 | <span>${_('Changelog')}</span> |
|
168 | 154 | </a> |
|
169 | 155 | </li> |
|
170 | 156 | |
|
171 | 157 | <li ${is_current('switch_to')}> |
|
172 | 158 | <a title="${_('Switch to')}" href="#"> |
|
173 | 159 | <span class="icon"> |
|
174 | 160 | <img src="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" /> |
|
175 | 161 | </span> |
|
176 | 162 | <span>${_('Switch to')}</span> |
|
177 | 163 | </a> |
|
178 | 164 | <ul> |
|
179 | 165 | <li> |
|
180 | 166 | ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} |
|
181 | 167 | <ul> |
|
182 | 168 | %if c.rhodecode_repo.branches.values(): |
|
183 | 169 | %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()): |
|
184 | 170 | <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li> |
|
185 | 171 | %endfor |
|
186 | 172 | %else: |
|
187 | 173 | <li>${h.link_to(_('There are no branches yet'),'#')}</li> |
|
188 | 174 | %endif |
|
189 | 175 | </ul> |
|
190 | 176 | </li> |
|
191 | 177 | <li> |
|
192 | 178 | ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} |
|
193 | 179 | <ul> |
|
194 | 180 | %if c.rhodecode_repo.tags.values(): |
|
195 | 181 | %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()): |
|
196 | 182 | <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li> |
|
197 | 183 | %endfor |
|
198 | 184 | %else: |
|
199 | 185 | <li>${h.link_to(_('There are no tags yet'),'#')}</li> |
|
200 | 186 | %endif |
|
201 | 187 | </ul> |
|
202 | 188 | </li> |
|
203 | 189 | </ul> |
|
204 | 190 | </li> |
|
205 | 191 | <li ${is_current('files')}> |
|
206 | 192 | <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
|
207 | 193 | <span class="icon"> |
|
208 | 194 | <img src="${h.url("/images/icons/file.png")}" alt="${_('Files')}" /> |
|
209 | 195 | </span> |
|
210 | 196 | <span>${_('Files')}</span> |
|
211 | 197 | </a> |
|
212 | 198 | </li> |
|
213 | 199 | |
|
214 | 200 | <li ${is_current('options')}> |
|
215 | 201 | <a title="${_('Options')}" href="#"> |
|
216 | 202 | <span class="icon"> |
|
217 | 203 | <img src="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" /> |
|
218 | 204 | </span> |
|
219 | 205 | <span>${_('Options')}</span> |
|
220 | 206 | </a> |
|
221 | 207 | <ul> |
|
222 | 208 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
|
223 | 209 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
|
224 | 210 | <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
|
225 | 211 | %else: |
|
226 | 212 | <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
|
227 | 213 | %endif |
|
228 | 214 | %endif |
|
229 | 215 | <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> |
|
230 | 216 | <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> |
|
231 | 217 | |
|
232 | 218 | %if h.HasPermissionAll('hg.admin')('access admin main page'): |
|
233 | 219 | <li> |
|
234 | 220 | ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
|
235 | 221 | <%def name="admin_menu()"> |
|
236 | 222 | <ul> |
|
237 | 223 | <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li> |
|
238 | 224 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
|
239 | 225 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
|
240 | 226 | <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> |
|
241 | 227 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
|
242 | 228 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
|
243 | 229 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
|
244 | 230 | </ul> |
|
245 | 231 | </%def> |
|
246 | 232 | |
|
247 | 233 | ${admin_menu()} |
|
248 | 234 | </li> |
|
249 | 235 | %endif |
|
250 | 236 | |
|
251 | 237 | </ul> |
|
252 | 238 | </li> |
|
253 | 239 | |
|
254 | 240 | <li> |
|
255 | 241 | <a title="${_('Followers')}" href="#"> |
|
256 | 242 | <span class="icon_short"> |
|
257 | 243 | <img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" /> |
|
258 | 244 | </span> |
|
259 | 245 | <span id="current_followers_count" class="short">${c.repository_followers}</span> |
|
260 | 246 | </a> |
|
261 | 247 | </li> |
|
262 | 248 | <li> |
|
263 | 249 | <a title="${_('Forks')}" href="#"> |
|
264 | 250 | <span class="icon_short"> |
|
265 | 251 | <img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" /> |
|
266 | 252 | </span> |
|
267 | 253 | <span class="short">${c.repository_forks}</span> |
|
268 | 254 | </a> |
|
269 | 255 | </li> |
|
270 | 256 | |
|
271 | 257 | |
|
272 | 258 | |
|
273 | 259 | </ul> |
|
274 | 260 | %else: |
|
275 | 261 | ##ROOT MENU |
|
276 | 262 | <ul id="quick"> |
|
277 | 263 | <li> |
|
278 | 264 | <a title="${_('Home')}" href="${h.url('home')}"> |
|
279 | 265 | <span class="icon"> |
|
280 | 266 | <img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" /> |
|
281 | 267 | </span> |
|
282 | 268 | <span>${_('Home')}</span> |
|
283 | 269 | </a> |
|
284 | 270 | </li> |
|
285 | 271 | %if c.rhodecode_user.username != 'default': |
|
286 | 272 | <li> |
|
287 | 273 | <a title="${_('Journal')}" href="${h.url('journal')}"> |
|
288 | 274 | <span class="icon"> |
|
289 | 275 | <img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" /> |
|
290 | 276 | </span> |
|
291 | 277 | <span>${_('Journal')}</span> |
|
292 | 278 | </a> |
|
293 | 279 | </li> |
|
294 | 280 | %endif |
|
295 | 281 | <li> |
|
296 | 282 | <a title="${_('Search')}" href="${h.url('search')}"> |
|
297 | 283 | <span class="icon"> |
|
298 | 284 | <img src="${h.url("/images/icons/search_16.png")}" alt="${_('Search')}" /> |
|
299 | 285 | </span> |
|
300 | 286 | <span>${_('Search')}</span> |
|
301 | 287 | </a> |
|
302 | 288 | </li> |
|
303 | 289 | |
|
304 | 290 | %if h.HasPermissionAll('hg.admin')('access admin main page'): |
|
305 | 291 | <li ${is_current('admin')}> |
|
306 | 292 | <a title="${_('Admin')}" href="${h.url('admin_home')}"> |
|
307 | 293 | <span class="icon"> |
|
308 | 294 | <img src="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" /> |
|
309 | 295 | </span> |
|
310 | 296 | <span>${_('Admin')}</span> |
|
311 | 297 | </a> |
|
312 | 298 | ${admin_menu()} |
|
313 | 299 | </li> |
|
314 | 300 | %endif |
|
315 | 301 | </ul> |
|
316 | 302 | %endif |
|
317 | </%def> | |
|
318 | ||
|
319 | ||
|
320 | <%def name="css()"> | |
|
321 | <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" /> | |
|
322 | <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" /> | |
|
323 | <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" /> | |
|
324 | </%def> | |
|
325 | ||
|
326 | <%def name="js()"> | |
|
327 | ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script> | |
|
328 | ##<script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script> | |
|
329 | ##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script> | |
|
330 | ##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script> | |
|
331 | ##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script> | |
|
332 | ||
|
333 | <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script> | |
|
334 | <!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script><![endif]--> | |
|
335 | <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script> | |
|
336 | ||
|
337 | <script type="text/javascript"> | |
|
338 | var base_url = "${h.url('toggle_following')}"; | |
|
339 | var YUC = YAHOO.util.Connect; | |
|
340 | var YUD = YAHOO.util.Dom; | |
|
341 | var YUE = YAHOO.util.Event; | |
|
342 | ||
|
343 | function onSuccess(target){ | |
|
344 | ||
|
345 | var f = YUD.get(target.id); | |
|
346 | var f_cnt = YUD.get('current_followers_count'); | |
|
347 | ||
|
348 | if(f.getAttribute('class')=='follow'){ | |
|
349 | f.setAttribute('class','following'); | |
|
350 | f.setAttribute('title',"${_('Stop following this repository')}"); | |
|
351 | ||
|
352 | if(f_cnt){ | |
|
353 | var cnt = Number(f_cnt.innerHTML)+1; | |
|
354 | f_cnt.innerHTML = cnt; | |
|
355 | } | |
|
356 | ||
|
357 | } | |
|
358 | else{ | |
|
359 | f.setAttribute('class','follow'); | |
|
360 | f.setAttribute('title',"${_('Start following this repository')}"); | |
|
361 | if(f_cnt){ | |
|
362 | var cnt = Number(f_cnt.innerHTML)+1; | |
|
363 | f_cnt.innerHTML = cnt; | |
|
364 | } | |
|
365 | } | |
|
366 | } | |
|
367 | ||
|
368 | function toggleFollowingUser(target,fallows_user_id,token,user_id){ | |
|
369 | args = 'follows_user_id='+fallows_user_id; | |
|
370 | args+= '&auth_token='+token; | |
|
371 | if(user_id != undefined){ | |
|
372 | args+="&user_id="+user_id; | |
|
373 | } | |
|
374 | YUC.asyncRequest('POST',base_url,{ | |
|
375 | success:function(o){ | |
|
376 | onSuccess(target); | |
|
377 | } | |
|
378 | },args); return false; | |
|
379 | } | |
|
380 | ||
|
381 | function toggleFollowingRepo(target,fallows_repo_id,token,user_id){ | |
|
382 | ||
|
383 | args = 'follows_repo_id='+fallows_repo_id; | |
|
384 | args+= '&auth_token='+token; | |
|
385 | if(user_id != undefined){ | |
|
386 | args+="&user_id="+user_id; | |
|
387 | } | |
|
388 | YUC.asyncRequest('POST',base_url,{ | |
|
389 | success:function(o){ | |
|
390 | onSuccess(target); | |
|
391 | } | |
|
392 | },args); return false; | |
|
393 | } | |
|
394 | </script> | |
|
395 | ||
|
396 | </%def> | |
|
397 | ||
|
398 | <%def name="breadcrumbs()"> | |
|
399 | <div class="breadcrumbs"> | |
|
400 | ${self.breadcrumbs_links()} | |
|
401 | </div> | |
|
402 | 303 | </%def> No newline at end of file |
@@ -1,82 +1,72 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
|
4 | <head> | |
|
5 | <title>${_('Sign In')} - ${c.rhodecode_name}</title> | |
|
6 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
|
7 | <link rel="icon" href="${h.url("/images/icons/database_gear.png")}" type="image/png" /> | |
|
8 | <meta name="robots" content="index, nofollow"/> | |
|
2 | <%inherit file="base/root.html"/> | |
|
9 | 3 | |
|
10 | <!-- stylesheets --> | |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" /> | |
|
4 | <%def name="title()"> | |
|
5 | ${_('Sign In')} - ${c.rhodecode_name} | |
|
6 | </%def> | |
|
12 | 7 | |
|
13 | </head> | |
|
14 | <body> | |
|
15 | 8 |
|
|
16 | 9 |
|
|
17 | 10 |
|
|
18 | 11 |
|
|
19 | 12 |
|
|
20 | 13 |
|
|
21 | 14 |
|
|
22 | 15 |
|
|
23 | 16 |
|
|
24 | 17 |
|
|
25 | 18 |
|
|
26 | 19 |
|
|
27 | 20 |
|
|
28 | 21 |
|
|
29 | 22 |
|
|
30 | 23 |
|
|
31 | 24 |
|
|
32 | 25 |
|
|
33 | 26 |
|
|
34 | 27 | |
|
35 | 28 |
|
|
36 | 29 |
|
|
37 | 30 |
|
|
38 | 31 |
|
|
39 | 32 |
|
|
40 | 33 |
|
|
41 | 34 |
|
|
42 | 35 |
|
|
43 | 36 |
|
|
44 | 37 |
|
|
45 | 38 |
|
|
46 | 39 |
|
|
47 | 40 |
|
|
48 | 41 |
|
|
49 | 42 |
|
|
50 | 43 |
|
|
51 | 44 |
|
|
52 | 45 |
|
|
53 | 46 |
|
|
54 | 47 |
|
|
55 | 48 |
|
|
56 | 49 |
|
|
57 | 50 |
|
|
58 | 51 |
|
|
59 | 52 |
|
|
60 | 53 |
|
|
61 | 54 |
|
|
62 | 55 |
|
|
63 | 56 |
|
|
64 | 57 |
|
|
65 | 58 |
|
|
66 | 59 |
|
|
67 | 60 |
|
|
68 | 61 |
|
|
69 | 62 |
|
|
70 | 63 |
|
|
71 | 64 |
|
|
72 | 65 |
|
|
73 | 66 | |
|
74 | 67 |
|
|
75 | 68 |
|
|
76 | 69 |
|
|
77 | 70 |
|
|
78 | 71 |
|
|
79 |
|
|
|
80 | </body> | |
|
81 | </html> | |
|
82 | ||
|
72 | </div> No newline at end of file |
@@ -1,48 +1,39 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
|
4 | <head> | |
|
5 | <title>${_('Reset You password')} - ${c.rhodecode_name}</title> | |
|
6 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
|
7 | <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" /> | |
|
8 | <meta name="robots" content="index, nofollow"/> | |
|
2 | <%inherit file="base/root.html"/> | |
|
9 | 3 | |
|
10 | <!-- stylesheets --> | |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" /> | |
|
4 | <%def name="title()"> | |
|
5 | ${_('Reset You password')} - ${c.rhodecode_name} | |
|
6 | </%def> | |
|
12 | 7 | |
|
13 | </head> | |
|
14 | <body> | |
|
15 | 8 |
|
|
16 | 9 | |
|
17 | 10 |
|
|
18 | 11 |
|
|
19 | 12 |
|
|
20 | 13 |
|
|
21 | 14 |
|
|
22 | 15 |
|
|
23 | 16 |
|
|
24 | 17 |
|
|
25 | 18 |
|
|
26 | 19 |
|
|
27 | 20 |
|
|
28 | 21 |
|
|
29 | 22 |
|
|
30 | 23 |
|
|
31 | 24 |
|
|
32 | 25 |
|
|
33 | 26 |
|
|
34 | 27 |
|
|
35 | 28 |
|
|
36 | 29 |
|
|
37 | 30 |
|
|
38 | 31 |
|
|
39 | 32 |
|
|
40 | 33 |
|
|
41 | 34 |
|
|
42 | 35 |
|
|
43 | 36 |
|
|
44 | 37 |
|
|
45 | 38 |
|
|
46 | </body> | |
|
47 | </html> | |
|
48 | 39 |
@@ -1,96 +1,87 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
|
4 | <head> | |
|
5 | <title>${_('Sign Up')} - ${c.rhodecode_name}</title> | |
|
6 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
|
7 | <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" /> | |
|
8 | <meta name="robots" content="index, nofollow"/> | |
|
2 | <%inherit file="base/root.html"/> | |
|
9 | 3 | |
|
10 | <!-- stylesheets --> | |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" /> | |
|
4 | <%def name="title()"> | |
|
5 | ${_('Sign Up')} - ${c.rhodecode_name} | |
|
6 | </%def> | |
|
12 | 7 | |
|
13 | </head> | |
|
14 | <body> | |
|
15 | 8 |
|
|
16 | 9 | |
|
17 | 10 |
|
|
18 | 11 |
|
|
19 | 12 |
|
|
20 | 13 |
|
|
21 | 14 |
|
|
22 | 15 |
|
|
23 | 16 |
|
|
24 | 17 |
|
|
25 | 18 |
|
|
26 | 19 |
|
|
27 | 20 |
|
|
28 | 21 |
|
|
29 | 22 |
|
|
30 | 23 |
|
|
31 | 24 |
|
|
32 | 25 |
|
|
33 | 26 |
|
|
34 | 27 |
|
|
35 | 28 |
|
|
36 | 29 |
|
|
37 | 30 |
|
|
38 | 31 |
|
|
39 | 32 |
|
|
40 | 33 |
|
|
41 | 34 |
|
|
42 | 35 |
|
|
43 | 36 |
|
|
44 | 37 |
|
|
45 | 38 |
|
|
46 | 39 |
|
|
47 | 40 |
|
|
48 | 41 |
|
|
49 | 42 |
|
|
50 | 43 |
|
|
51 | 44 |
|
|
52 | 45 |
|
|
53 | 46 |
|
|
54 | 47 |
|
|
55 | 48 |
|
|
56 | 49 |
|
|
57 | 50 |
|
|
58 | 51 |
|
|
59 | 52 |
|
|
60 | 53 |
|
|
61 | 54 |
|
|
62 | 55 |
|
|
63 | 56 |
|
|
64 | 57 |
|
|
65 | 58 |
|
|
66 | 59 |
|
|
67 | 60 |
|
|
68 | 61 |
|
|
69 | 62 |
|
|
70 | 63 |
|
|
71 | 64 |
|
|
72 | 65 |
|
|
73 | 66 |
|
|
74 | 67 |
|
|
75 | 68 |
|
|
76 | 69 |
|
|
77 | 70 |
|
|
78 | 71 |
|
|
79 | 72 |
|
|
80 | 73 |
|
|
81 | 74 |
|
|
82 | 75 |
|
|
83 | 76 |
|
|
84 | 77 |
|
|
85 | 78 |
|
|
86 | 79 |
|
|
87 | 80 |
|
|
88 | 81 |
|
|
89 | 82 |
|
|
90 | 83 |
|
|
91 | 84 |
|
|
92 | 85 |
|
|
93 | 86 |
|
|
94 | </body> | |
|
95 | </html> | |
|
96 | 87 |
General Comments 0
You need to be logged in to leave comments.
Login now