##// END OF EJS Templates
fixed missing div on my_account + added nothing here yet when there are no...
marcink -
r2722:ef752034 beta
parent child Browse files
Show More
@@ -219,6 +219,11 b' div.options a {'
219 margin-bottom: 0;
219 margin-bottom: 0;
220 margin-top: 5px;
220 margin-top: 5px;
221 }
221 }
222
223 .empty_data{
224 color:#B9B9B9;
225 }
226
222 a.permalink{
227 a.permalink{
223 visibility: hidden;
228 visibility: hidden;
224 }
229 }
@@ -183,7 +183,7 b''
183 %for section in sorted(c.perm_user.permissions.keys()):
183 %for section in sorted(c.perm_user.permissions.keys()):
184 <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div>
184 <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div>
185 %if not c.perm_user.permissions[section]:
185 %if not c.perm_user.permissions[section]:
186 <span style="color:#B9B9B9">${_('Nothing here yet')}</span>
186 <span class="empty_data">${_('Nothing here yet')}</span>
187 %else:
187 %else:
188 <div id='tbl_list_wrap_${section}' class="yui-skin-sam">
188 <div id='tbl_list_wrap_${section}' class="yui-skin-sam">
189 <table id="tbl_list_${section}">
189 <table id="tbl_list_${section}">
@@ -96,8 +96,11 b''
96 </div>
96 </div>
97 <div id="my" class="table" style="display:none">
97 <div id="my" class="table" style="display:none">
98 </div>
98 </div>
99 <div id="pullrequests" class="table" style="display:none">
99 <div id="pullrequests" class="table" style="display:none"></div>
100 </div>
100 </div>
101
102
103
101 <script type="text/javascript">
104 <script type="text/javascript">
102 var filter_activate = function(){
105 var filter_activate = function(){
103 var nodes = YUQ('#my tr td a.repo_name');
106 var nodes = YUQ('#my tr td a.repo_name');
@@ -1,22 +1,30 b''
1
1
2 <div class="pullrequests_section_head">${_('Opened by me')}</div>
2 <div class="pullrequests_section_head">${_('Opened by me')}</div>
3 <ul>
3 <ul>
4 %for pull_request in c.my_pull_requests:
4 %if c.my_pull_requests:
5 <li>
5 %for pull_request in c.my_pull_requests:
6 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">
6 <li>
7 ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))}
7 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">
8 </a>
8 ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))}
9 </li>
9 </a>
10 %endfor
10 </li>
11 %endfor
12 %else:
13 <li><span class="empty_data">${_('Nothing here yet')}</span></li>
14 %endif
11 </ul>
15 </ul>
12
16
13 <div class="pullrequests_section_head">${_('I participate in')}</div>
17 <div class="pullrequests_section_head">${_('I participate in')}</div>
14 <ul>
18 <ul>
15 %for pull_request in c.participate_in_pull_requests:
19 %if c.my_pull_requests:
16 <li>
20 %for pull_request in c.participate_in_pull_requests:
17 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">
21 <li>
18 ${_('Pull request #%s opened by %s on %s') % (pull_request.pull_request_id, pull_request.author.full_name, h.fmt_date(pull_request.created_on))}
22 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">
19 </a>
23 ${_('Pull request #%s opened by %s on %s') % (pull_request.pull_request_id, pull_request.author.full_name, h.fmt_date(pull_request.created_on))}
20 </li>
24 </a>
21 %endfor
25 </li>
26 %endfor
27 %else:
28 <li><span class="empty_data">${_('Nothing here yet')}</span></li>
29 %endif
22 </ul>
30 </ul>
General Comments 0
You need to be logged in to leave comments. Login now