##// END OF EJS Templates
move repo actions from their own menu line to Options menu
Mads Kiilerich -
r3611:ceb7fdf4 beta
parent child Browse files
Show More
@@ -7,8 +7,8 b''
7 #quick .search { background-image: url("../images/icons/search_16.png"); }
7 #quick .search { background-image: url("../images/icons/search_16.png"); }
8 #quick .admin { background-image: url("../images/icons/cog_edit.png"); }
8 #quick .admin { background-image: url("../images/icons/cog_edit.png"); }
9
9
10 #context-bar button.follow { background-image: url("../images/icons/heart.png"); }
10 #context-bar a.follow { background-image: url("../images/icons/heart.png"); }
11 #context-bar button.following { background-image: url("../images/icons/heart_delete.png"); }
11 #context-bar a.following { background-image: url("../images/icons/heart_delete.png"); }
12 #context-bar a.fork { background-image: url("../images/icons/arrow_divide.png"); }
12 #context-bar a.fork { background-image: url("../images/icons/arrow_divide.png"); }
13 #context-bar a.summary { background-image: url("../images/icons/clipboard_16.png"); }
13 #context-bar a.summary { background-image: url("../images/icons/clipboard_16.png"); }
14 #context-bar a.changelogs { background-image: url("../images/icons/time.png"); }
14 #context-bar a.changelogs { background-image: url("../images/icons/time.png"); }
@@ -47,14 +47,12 b''
47
47
48 #header #header-inner #quick a,
48 #header #header-inner #quick a,
49 #content #context-bar,
49 #content #context-bar,
50 #content #context-bar a,
50 #content #context-bar a {
51 #content #context-bar button {
52 color: #FFFFFF;
51 color: #FFFFFF;
53 }
52 }
54
53
55 #header #header-inner #quick a:hover,
54 #header #header-inner #quick a:hover,
56 #content #context-bar a:hover,
55 #content #context-bar a:hover {
57 #content #context-bar button:hover {
58 text-decoration: none;
56 text-decoration: none;
59 }
57 }
60
58
@@ -170,7 +168,6 b' ul#context-actions {'
170 border-left: 1px solid rgba(255,255,255,0.1);
168 border-left: 1px solid rgba(255,255,255,0.1);
171 }
169 }
172
170
173 #context-actions button,
174 #context-actions a {
171 #context-actions a {
175 display: block;
172 display: block;
176 cursor: pointer;
173 cursor: pointer;
@@ -216,7 +213,7 b' ul#context-actions {'
216 border-radius: 0 4px 4px 0;
213 border-radius: 0 4px 4px 0;
217 }
214 }
218
215
219 #content #context-actions .icon {
216 #content #context-actions .icon {
220 margin: auto;
217 margin: auto;
221 margin-bottom: 5px;
218 margin-bottom: 5px;
222 display: block;
219 display: block;
@@ -224,25 +221,11 b' ul#context-actions {'
224 float: none;
221 float: none;
225 }
222 }
226
223
227 #content #context-actions button.follow,
224 #content #context-pages .follow .show-following,
228 #content #context-actions button.following {
225 #content #context-pages .following .show-follow {
229 width: auto;
230 float: none;
231 }
232
233 #content #context-actions button .show-following,
234 #content #context-actions button .show-follow {
235 display: none;
226 display: none;
236 }
227 }
237
228
238 #content #context-bar #context-actions button.follow .show-follow {
239 display: block;
240 }
241
242 #content #context-bar #context-actions button.following .show-following {
243 display: block;
244 }
245
246 #context-state {
229 #context-state {
247 background-color: #336699;
230 background-color: #336699;
248 border-top: 1px solid #517da8;
231 border-top: 1px solid #517da8;
@@ -3174,26 +3174,6 b' table.code-browser .submodule-dir {'
3174 z-index: 9050;
3174 z-index: 9050;
3175 }
3175 }
3176
3176
3177 .follow {
3178 background: url("../images/icons/heart_add.png") no-repeat scroll 3px;
3179 height: 16px;
3180 width: 20px;
3181 cursor: pointer;
3182 display: block;
3183 float: right;
3184 margin-top: 2px;
3185 }
3186
3187 .following {
3188 background: url("../images/icons/heart_delete.png") no-repeat scroll 3px;
3189 height: 16px;
3190 width: 20px;
3191 cursor: pointer;
3192 display: block;
3193 float: right;
3194 margin-top: 2px;
3195 }
3196
3197 .reposize {
3177 .reposize {
3198 background: url("../images/icons/server.png") no-repeat scroll 3px;
3178 background: url("../images/icons/server.png") no-repeat scroll 3px;
3199 height: 16px;
3179 height: 16px;
@@ -87,7 +87,7 b''
87 if c.repository_following:
87 if c.repository_following:
88 return h.literal('following')
88 return h.literal('following')
89 else:
89 else:
90 return h.literal('follow')
90 return h.literal('follow')
91 %>
91 %>
92 <%
92 <%
93 def is_current(selected):
93 def is_current(selected):
@@ -103,24 +103,6 b''
103 &raquo;
103 &raquo;
104 ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
104 ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
105 </div>
105 </div>
106 ## TODO: this check feels wrong, it would be better to have a check for permissions
107 ## also it feels like a job for the controller
108 %if c.rhodecode_user.username != 'default':
109 <ul id="context-actions" class="horizontal-list">
110 <li>
111 <button class="${follow_class()}" onclick="javascript:toggleFollowingRepo(this,${c.rhodecode_db_repo.repo_id},'${str(h.get_token())}');">
112 <!--span class="icon show-follow follow"></span>
113 <span class="icon show-following following"></span-->
114 <span class="show-follow">${_('Follow')}</span>
115 <span class="show-following">${_('Unfollow')}</span>
116 </button>
117 </li>
118 <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}" class="fork">${_('Fork')}</a></li>
119 %if h.is_hg(c.rhodecode_repo):
120 <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="pull-request">${_('Create Pull Request')}</a></li>
121 %endif
122 </ul>
123 %endif
124 </div>
106 </div>
125 <div id="context-state">
107 <div id="context-state">
126 <ul id="context-pages" class="horizontal-list">
108 <ul id="context-pages" class="horizontal-list">
@@ -156,6 +138,20 b''
156 <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li>
138 <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li>
157 %endif
139 %endif
158 %endif
140 %endif
141 ## TODO: this check feels wrong, it would be better to have a check for permissions
142 ## also it feels like a job for the controller
143 %if c.rhodecode_user.username != 'default':
144 <li>
145 <a class="${follow_class()}" onclick="javascript:toggleFollowingRepo(this,${c.rhodecode_db_repo.repo_id},'${str(h.get_token())}');">
146 <span class="show-follow">${_('Follow')}</span>
147 <span class="show-following">${_('Unfollow')}</span>
148 </a>
149 </li>
150 <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}" class="fork">${_('Fork')}</a></li>
151 %if h.is_hg(c.rhodecode_repo):
152 <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="pull-request">${_('Create Pull Request')}</a></li>
153 %endif
154 %endif
159 </ul>
155 </ul>
160 </li>
156 </li>
161 <li ${is_current('showpullrequest')}>
157 <li ${is_current('showpullrequest')}>
General Comments 0
You need to be logged in to leave comments. Login now