Show More
@@ -15,16 +15,13 b'' | |||
|
15 | 15 | <!-- box / title --> |
|
16 | 16 | <div class="title"> |
|
17 | 17 | <h5>${_('Journal')}</h5> |
|
18 | </div> | |
|
19 | <script type="text/javascript"> | |
|
20 | function show_more_event(){ | |
|
21 | YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){ | |
|
22 | var el = e.target; | |
|
23 | YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); | |
|
24 | YUD.setStyle(el.parentNode,'display','none'); | |
|
25 | }); | |
|
26 | } | |
|
27 | </script> | |
|
18 | <ul class="links"> | |
|
19 | <li> | |
|
20 | <span><a href="#"><img id="refresh" class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/> | |
|
21 | </a></span> | |
|
22 | </li> | |
|
23 | </ul> | |
|
24 | </div> | |
|
28 | 25 | <div id="journal">${c.journal_data}</div> |
|
29 | 26 | </div> |
|
30 | 27 | <div class="box box-right"> |
@@ -44,6 +41,7 b'' | |||
|
44 | 41 | </div> |
|
45 | 42 | <!-- end box / title --> |
|
46 | 43 | <div id="my" class="table"> |
|
44 | %if c.user_repos: | |
|
47 | 45 | <table> |
|
48 | 46 | <thead> |
|
49 | 47 | <tr> |
@@ -52,7 +50,6 b'' | |||
|
52 | 50 | <th colspan="2" class="left">${_('action')}</th> |
|
53 | 51 | </thead> |
|
54 | 52 | <tbody> |
|
55 | %if c.user_repos: | |
|
56 | 53 | %for repo in c.user_repos: |
|
57 | 54 | <tr> |
|
58 | 55 | <td> |
@@ -86,6 +83,8 b'' | |||
|
86 | 83 | </td> |
|
87 | 84 | </tr> |
|
88 | 85 | %endfor |
|
86 | </tbody> | |
|
87 | </table> | |
|
89 | 88 | %else: |
|
90 | 89 | <div style="padding:5px 0px 10px 0px;"> |
|
91 | 90 | ${_('No repositories yet')} |
@@ -93,29 +92,26 b'' | |||
|
93 | 92 | ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-button-small")} |
|
94 | 93 | %endif |
|
95 | 94 | </div> |
|
96 | %endif | |
|
97 | </tbody> | |
|
98 | </table> | |
|
95 | %endif | |
|
99 | 96 | </div> |
|
100 | 97 | |
|
101 | 98 | <div id="watched" class="table" style="display:none"> |
|
102 | <table> | |
|
103 | <thead> | |
|
104 | <tr> | |
|
105 | <th class="left">${_('Name')}</th> | |
|
106 | </thead> | |
|
107 | <tbody> | |
|
108 | 99 | %if c.following: |
|
109 | %for entry in c.following: | |
|
110 |
|
|
|
111 |
<t |
|
|
100 | <table> | |
|
101 | <thead> | |
|
102 | <tr> | |
|
103 | <th class="left">${_('Name')}</th> | |
|
104 | </thead> | |
|
105 | <tbody> | |
|
106 | %for entry in c.following: | |
|
107 | <tr> | |
|
108 | <td> | |
|
112 | 109 | %if entry.follows_user_id: |
|
113 | 110 | <img title="${_('following user')}" alt="${_('user')}" src="${h.url('/images/icons/user.png')}"/> |
|
114 | 111 | ${entry.follows_user.full_contact} |
|
115 | 112 | %endif |
|
116 | 113 | |
|
117 | 114 | %if entry.follows_repo_id: |
|
118 | ||
|
119 | 115 | <div style="float:right;padding-right:5px"> |
|
120 | 116 | <span id="follow_toggle_${entry.follows_repository.repo_id}" class="following" title="${_('Stop following this repository')}" |
|
121 | 117 | onclick="javascript:toggleFollowingRepo(this,${entry.follows_repository.repo_id},'${str(h.get_token())}')"> |
@@ -137,15 +133,19 b'' | |||
|
137 | 133 | ${h.link_to(entry.follows_repository.repo_name,h.url('summary_home',repo_name=entry.follows_repository.repo_name))} |
|
138 | 134 | </span> |
|
139 | 135 | %endif |
|
140 | </td> | |
|
141 | </tr> | |
|
142 | %endfor | |
|
136 | </td> | |
|
137 | </tr> | |
|
138 | %endfor | |
|
139 | </tbody> | |
|
140 | </table> | |
|
143 | 141 | %else: |
|
144 | </tbody> | |
|
142 | <div style="padding:5px 0px 10px 0px;"> | |
|
145 | 143 | ${_('You are not following any users or repositories')} |
|
146 |
|
|
|
147 | </table> | |
|
144 | </div> | |
|
145 | %endif | |
|
148 | 146 | </div> |
|
147 | </div> | |
|
148 | ||
|
149 | 149 | <script type="text/javascript"> |
|
150 | 150 | YUE.on('show_my','click',function(e){ |
|
151 | 151 | YUD.setStyle('watched','display','none'); |
@@ -169,5 +169,9 b'' | |||
|
169 | 169 | q_filter(target,nodes,func); |
|
170 | 170 | YUE.preventDefault(e); |
|
171 | 171 | }) |
|
172 | YUE.on('refresh','click',function(e){ | |
|
173 | ypjax(e.target.href,"journal",function(){show_more_event();tooltip_activate();}); | |
|
174 | YUE.preventDefault(e); | |
|
175 | }) | |
|
172 | 176 | </script> |
|
173 | 177 | </%def> |
@@ -31,17 +31,19 b'' | |||
|
31 | 31 | %endfor |
|
32 | 32 | %endfor |
|
33 | 33 | |
|
34 | <div class="pagination-wh pagination-left"> | |
|
35 | <script type="text/javascript"> | |
|
36 | YUE.onDOMReady(function(){ | |
|
37 | YUE.delegate("journal","click",function(e, matchedEl, container){ | |
|
38 | ypjax(e.target.href,"journal",function(){show_more_event();tooltip_activate();}); | |
|
39 | YUE.preventDefault(e); | |
|
40 | },'.pager_link'); | |
|
41 | }); | |
|
42 | </script> | |
|
43 | ${c.journal_pager.pager('$link_previous ~2~ $link_next')} | |
|
44 | </div> | |
|
34 | <div class="pagination-wh pagination-left"> | |
|
35 | <script type="text/javascript"> | |
|
36 | YUE.onDOMReady(function(){ | |
|
37 | YUE.delegate("journal","click",function(e, matchedEl, container){ | |
|
38 | ypjax(e.target.href,"journal",function(){show_more_event();tooltip_activate();}); | |
|
39 | YUE.preventDefault(e); | |
|
40 | },'.pager_link'); | |
|
41 | }); | |
|
42 | </script> | |
|
43 | ${c.journal_pager.pager('$link_previous ~2~ $link_next')} | |
|
44 | </div> | |
|
45 | 45 | %else: |
|
46 | ${_('No entries yet')} | |
|
46 | <div style="padding:5px 0px 10px 10px;"> | |
|
47 | ${_('No entries yet')} | |
|
48 | </div> | |
|
47 | 49 | %endif No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now