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