Show More
@@ -7,8 +7,8 | |||
|
7 | 7 | #quick .search { background-image: url("../images/icons/search_16.png"); } |
|
8 | 8 | #quick .admin { background-image: url("../images/icons/cog_edit.png"); } |
|
9 | 9 | |
|
10 |
#context-bar |
|
|
11 |
#context-bar |
|
|
10 | #context-bar a.follow { background-image: url("../images/icons/heart.png"); } | |
|
11 | #context-bar a.following { background-image: url("../images/icons/heart_delete.png"); } | |
|
12 | 12 | #context-bar a.fork { background-image: url("../images/icons/arrow_divide.png"); } |
|
13 | 13 | #context-bar a.summary { background-image: url("../images/icons/clipboard_16.png"); } |
|
14 | 14 | #context-bar a.changelogs { background-image: url("../images/icons/time.png"); } |
@@ -47,14 +47,12 | |||
|
47 | 47 | |
|
48 | 48 | #header #header-inner #quick a, |
|
49 | 49 | #content #context-bar, |
|
50 |
#content #context-bar a |
|
|
51 | #content #context-bar button { | |
|
50 | #content #context-bar a { | |
|
52 | 51 | color: #FFFFFF; |
|
53 | 52 | } |
|
54 | 53 | |
|
55 | 54 | #header #header-inner #quick a:hover, |
|
56 |
#content #context-bar a:hover |
|
|
57 | #content #context-bar button:hover { | |
|
55 | #content #context-bar a:hover { | |
|
58 | 56 | text-decoration: none; |
|
59 | 57 | } |
|
60 | 58 | |
@@ -170,7 +168,6 ul#context-actions { | |||
|
170 | 168 | border-left: 1px solid rgba(255,255,255,0.1); |
|
171 | 169 | } |
|
172 | 170 | |
|
173 | #context-actions button, | |
|
174 | 171 | #context-actions a { |
|
175 | 172 | display: block; |
|
176 | 173 | cursor: pointer; |
@@ -224,25 +221,11 ul#context-actions { | |||
|
224 | 221 | float: none; |
|
225 | 222 | } |
|
226 | 223 | |
|
227 |
#content |
|
|
228 |
#content |
|
|
229 | width: auto; | |
|
230 | float: none; | |
|
231 | } | |
|
232 | ||
|
233 | #content #context-actions button .show-following, | |
|
234 | #content #context-actions button .show-follow { | |
|
224 | #content #context-pages .follow .show-following, | |
|
225 | #content #context-pages .following .show-follow { | |
|
235 | 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 | 229 | #context-state { |
|
247 | 230 | background-color: #336699; |
|
248 | 231 | border-top: 1px solid #517da8; |
@@ -3174,26 +3174,6 table.code-browser .submodule-dir { | |||
|
3174 | 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 | 3177 | .reposize { |
|
3198 | 3178 | background: url("../images/icons/server.png") no-repeat scroll 3px; |
|
3199 | 3179 | height: 16px; |
@@ -103,24 +103,6 | |||
|
103 | 103 | » |
|
104 | 104 | ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)} |
|
105 | 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 | 106 | </div> |
|
125 | 107 | <div id="context-state"> |
|
126 | 108 | <ul id="context-pages" class="horizontal-list"> |
@@ -156,6 +138,20 | |||
|
156 | 138 | <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> |
|
157 | 139 | %endif |
|
158 | 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 | 155 | </ul> |
|
160 | 156 | </li> |
|
161 | 157 | <li ${is_current('showpullrequest')}> |
General Comments 0
You need to be logged in to leave comments.
Login now