##// END OF EJS Templates
fix feed icon mistake
marcink -
r2412:708f70d4 beta
parent child Browse files
Show More
@@ -1,225 +1,225
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.html"/>
3 <%def name="title()">
3 <%def name="title()">
4 ${_('Journal')} - ${c.rhodecode_name}
4 ${_('Journal')} - ${c.rhodecode_name}
5 </%def>
5 </%def>
6 <%def name="breadcrumbs()">
6 <%def name="breadcrumbs()">
7 ${c.rhodecode_name}
7 ${c.rhodecode_name}
8 </%def>
8 </%def>
9 <%def name="page_nav()">
9 <%def name="page_nav()">
10 ${self.menu('home')}
10 ${self.menu('home')}
11 </%def>
11 </%def>
12 <%def name="main()">
12 <%def name="main()">
13
13
14 <div class="box box-left">
14 <div class="box box-left">
15 <!-- box / title -->
15 <!-- box / title -->
16 <div class="title">
16 <div class="title">
17 <h5>${_('Journal')}</h5>
17 <h5>${_('Journal')}</h5>
18 <ul class="links">
18 <ul class="links">
19 <li>
19 <li>
20 <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
20 <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
21 </li>
21 </li>
22 <li>
22 <li>
23 <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span>
23 <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span>
24 </li>
24 </li>
25 <li>
25 <li>
26 <span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span>
26 <span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/atom_16.png')}"/></a></span>
27 </li>
27 </li>
28 </ul>
28 </ul>
29 </div>
29 </div>
30 <div id="journal">${c.journal_data}</div>
30 <div id="journal">${c.journal_data}</div>
31 </div>
31 </div>
32 <div class="box box-right">
32 <div class="box box-right">
33 <!-- box / title -->
33 <!-- box / title -->
34 <div class="title">
34 <div class="title">
35 <h5>
35 <h5>
36 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
36 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
37 <a id="show_my" class="link-white" href="#my">${_('My repos')}</a> / <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a>
37 <a id="show_my" class="link-white" href="#my">${_('My repos')}</a> / <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a>
38 </h5>
38 </h5>
39 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
39 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
40 <ul class="links">
40 <ul class="links">
41 <li>
41 <li>
42 <span>${h.link_to(_('ADD'),h.url('admin_settings_create_repository'))}</span>
42 <span>${h.link_to(_('ADD'),h.url('admin_settings_create_repository'))}</span>
43 </li>
43 </li>
44 </ul>
44 </ul>
45 %endif
45 %endif
46 </div>
46 </div>
47 <!-- end box / title -->
47 <!-- end box / title -->
48 <div id="my" class="table">
48 <div id="my" class="table">
49 %if c.user_repos:
49 %if c.user_repos:
50 <div id='repos_list_wrap' class="yui-skin-sam">
50 <div id='repos_list_wrap' class="yui-skin-sam">
51 <table id="repos_list">
51 <table id="repos_list">
52 <thead>
52 <thead>
53 <tr>
53 <tr>
54 <th></th>
54 <th></th>
55 <th class="left">${_('Name')}</th>
55 <th class="left">${_('Name')}</th>
56 <th class="left">${_('Revision')}</th>
56 <th class="left">${_('Revision')}</th>
57 <th class="left">${_('Action')}</th>
57 <th class="left">${_('Action')}</th>
58 <th class="left">${_('Action')}</th>
58 <th class="left">${_('Action')}</th>
59 </thead>
59 </thead>
60 <tbody>
60 <tbody>
61 <%namespace name="dt" file="/data_table/_dt_elements.html"/>
61 <%namespace name="dt" file="/data_table/_dt_elements.html"/>
62 %for repo in c.user_repos:
62 %for repo in c.user_repos:
63 <tr>
63 <tr>
64 ##QUICK MENU
64 ##QUICK MENU
65 <td class="quick_repo_menu">
65 <td class="quick_repo_menu">
66 ${dt.quick_menu(repo['name'])}
66 ${dt.quick_menu(repo['name'])}
67 </td>
67 </td>
68 ##REPO NAME AND ICONS
68 ##REPO NAME AND ICONS
69 <td class="reponame">
69 <td class="reponame">
70 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
70 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
71 </td>
71 </td>
72 ##LAST REVISION
72 ##LAST REVISION
73 <td>
73 <td>
74 ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
74 ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
75 </td>
75 </td>
76 ##
76 ##
77 <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>
77 <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>
78 <td>
78 <td>
79 ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
79 ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
80 ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
80 ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
81 ${h.end_form()}
81 ${h.end_form()}
82 </td>
82 </td>
83 </tr>
83 </tr>
84 %endfor
84 %endfor
85 </tbody>
85 </tbody>
86 </table>
86 </table>
87 </div>
87 </div>
88 %else:
88 %else:
89 <div style="padding:5px 0px 10px 0px;">
89 <div style="padding:5px 0px 10px 0px;">
90 ${_('No repositories yet')}
90 ${_('No repositories yet')}
91 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
91 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
92 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
92 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
93 %endif
93 %endif
94 </div>
94 </div>
95 %endif
95 %endif
96 </div>
96 </div>
97
97
98 <div id="watched" class="table" style="display:none">
98 <div id="watched" class="table" style="display:none">
99 %if c.following:
99 %if c.following:
100 <table>
100 <table>
101 <thead>
101 <thead>
102 <tr>
102 <tr>
103 <th class="left">${_('Name')}</th>
103 <th class="left">${_('Name')}</th>
104 </thead>
104 </thead>
105 <tbody>
105 <tbody>
106 %for entry in c.following:
106 %for entry in c.following:
107 <tr>
107 <tr>
108 <td>
108 <td>
109 %if entry.follows_user_id:
109 %if entry.follows_user_id:
110 <img title="${_('following user')}" alt="${_('user')}" src="${h.url('/images/icons/user.png')}"/>
110 <img title="${_('following user')}" alt="${_('user')}" src="${h.url('/images/icons/user.png')}"/>
111 ${entry.follows_user.full_contact}
111 ${entry.follows_user.full_contact}
112 %endif
112 %endif
113
113
114 %if entry.follows_repo_id:
114 %if entry.follows_repo_id:
115 <div style="float:right;padding-right:5px">
115 <div style="float:right;padding-right:5px">
116 <span id="follow_toggle_${entry.follows_repository.repo_id}" class="following" title="${_('Stop following this repository')}"
116 <span id="follow_toggle_${entry.follows_repository.repo_id}" class="following" title="${_('Stop following this repository')}"
117 onclick="javascript:toggleFollowingRepo(this,${entry.follows_repository.repo_id},'${str(h.get_token())}')">
117 onclick="javascript:toggleFollowingRepo(this,${entry.follows_repository.repo_id},'${str(h.get_token())}')">
118 </span>
118 </span>
119 </div>
119 </div>
120
120
121 %if h.is_hg(entry.follows_repository):
121 %if h.is_hg(entry.follows_repository):
122 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
122 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
123 %elif h.is_git(entry.follows_repository):
123 %elif h.is_git(entry.follows_repository):
124 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
124 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
125 %endif
125 %endif
126
126
127 %if entry.follows_repository.private:
127 %if entry.follows_repository.private:
128 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/>
128 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/>
129 %else:
129 %else:
130 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/>
130 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/>
131 %endif
131 %endif
132 <span class="watched_repo">
132 <span class="watched_repo">
133 ${h.link_to(entry.follows_repository.repo_name,h.url('summary_home',repo_name=entry.follows_repository.repo_name))}
133 ${h.link_to(entry.follows_repository.repo_name,h.url('summary_home',repo_name=entry.follows_repository.repo_name))}
134 </span>
134 </span>
135 %endif
135 %endif
136 </td>
136 </td>
137 </tr>
137 </tr>
138 %endfor
138 %endfor
139 </tbody>
139 </tbody>
140 </table>
140 </table>
141 %else:
141 %else:
142 <div style="padding:5px 0px 10px 0px;">
142 <div style="padding:5px 0px 10px 0px;">
143 ${_('You are not following any users or repositories')}
143 ${_('You are not following any users or repositories')}
144 </div>
144 </div>
145 %endif
145 %endif
146 </div>
146 </div>
147 </div>
147 </div>
148
148
149 <script type="text/javascript">
149 <script type="text/javascript">
150
150
151 YUE.on('show_my','click',function(e){
151 YUE.on('show_my','click',function(e){
152 YUD.setStyle('watched','display','none');
152 YUD.setStyle('watched','display','none');
153 YUD.setStyle('my','display','');
153 YUD.setStyle('my','display','');
154 var nodes = YUQ('#my tr td a.repo_name');
154 var nodes = YUQ('#my tr td a.repo_name');
155 var target = 'q_filter';
155 var target = 'q_filter';
156 var func = function(node){
156 var func = function(node){
157 return node.parentNode.parentNode.parentNode.parentNode;
157 return node.parentNode.parentNode.parentNode.parentNode;
158 }
158 }
159 q_filter(target,nodes,func);
159 q_filter(target,nodes,func);
160 YUE.preventDefault(e);
160 YUE.preventDefault(e);
161 })
161 })
162 YUE.on('show_watched','click',function(e){
162 YUE.on('show_watched','click',function(e){
163 YUD.setStyle('my','display','none');
163 YUD.setStyle('my','display','none');
164 YUD.setStyle('watched','display','');
164 YUD.setStyle('watched','display','');
165 var nodes = YUQ('#watched .watched_repo a');
165 var nodes = YUQ('#watched .watched_repo a');
166 var target = 'q_filter';
166 var target = 'q_filter';
167 var func = function(node){
167 var func = function(node){
168 return node.parentNode.parentNode;
168 return node.parentNode.parentNode;
169 }
169 }
170 q_filter(target,nodes,func);
170 q_filter(target,nodes,func);
171 YUE.preventDefault(e);
171 YUE.preventDefault(e);
172 })
172 })
173 YUE.on('refresh','click',function(e){
173 YUE.on('refresh','click',function(e){
174 ypjax(e.currentTarget.href,"journal",function(){show_more_event();tooltip_activate();});
174 ypjax(e.currentTarget.href,"journal",function(){show_more_event();tooltip_activate();});
175 YUE.preventDefault(e);
175 YUE.preventDefault(e);
176 });
176 });
177
177
178
178
179 // main table sorting
179 // main table sorting
180 var myColumnDefs = [
180 var myColumnDefs = [
181 {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
181 {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
182 {key:"name",label:"${_('Name')}",sortable:true,
182 {key:"name",label:"${_('Name')}",sortable:true,
183 sortOptions: { sortFunction: nameSort }},
183 sortOptions: { sortFunction: nameSort }},
184 {key:"tip",label:"${_('Tip')}",sortable:true,
184 {key:"tip",label:"${_('Tip')}",sortable:true,
185 sortOptions: { sortFunction: revisionSort }},
185 sortOptions: { sortFunction: revisionSort }},
186 {key:"action1",label:"",sortable:false},
186 {key:"action1",label:"",sortable:false},
187 {key:"action2",label:"",sortable:false},
187 {key:"action2",label:"",sortable:false},
188 ];
188 ];
189
189
190 var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list"));
190 var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list"));
191
191
192 myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
192 myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
193
193
194 myDataSource.responseSchema = {
194 myDataSource.responseSchema = {
195 fields: [
195 fields: [
196 {key:"menu"},
196 {key:"menu"},
197 {key:"name"},
197 {key:"name"},
198 {key:"tip"},
198 {key:"tip"},
199 {key:"action1"},
199 {key:"action1"},
200 {key:"action2"}
200 {key:"action2"}
201 ]
201 ]
202 };
202 };
203
203
204 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
204 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
205 {
205 {
206 sortedBy:{key:"name",dir:"asc"},
206 sortedBy:{key:"name",dir:"asc"},
207 MSG_SORTASC:"${_('Click to sort ascending')}",
207 MSG_SORTASC:"${_('Click to sort ascending')}",
208 MSG_SORTDESC:"${_('Click to sort descending')}",
208 MSG_SORTDESC:"${_('Click to sort descending')}",
209 MSG_EMPTY:"${_('No records found.')}",
209 MSG_EMPTY:"${_('No records found.')}",
210 MSG_ERROR:"${_('Data error.')}",
210 MSG_ERROR:"${_('Data error.')}",
211 MSG_LOADING:"${_('Loading...')}",
211 MSG_LOADING:"${_('Loading...')}",
212 }
212 }
213 );
213 );
214 myDataTable.subscribe('postRenderEvent',function(oArgs) {
214 myDataTable.subscribe('postRenderEvent',function(oArgs) {
215 tooltip_activate();
215 tooltip_activate();
216 quick_repo_menu();
216 quick_repo_menu();
217 var func = function(node){
217 var func = function(node){
218 return node.parentNode.parentNode.parentNode.parentNode;
218 return node.parentNode.parentNode.parentNode.parentNode;
219 }
219 }
220 q_filter('q_filter',YUQ('#my tr td a.repo_name'),func);
220 q_filter('q_filter',YUQ('#my tr td a.repo_name'),func);
221 });
221 });
222
222
223
223
224 </script>
224 </script>
225 </%def>
225 </%def>
General Comments 0
You need to be logged in to leave comments. Login now