Show More
@@ -15,16 +15,13 b'' | |||
|
15 | 15 | <!-- box / title --> |
|
16 | 16 | <div class="title"> |
|
17 | 17 | <h5>${_('Journal')}</h5> |
|
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> | |
|
18 | 24 | </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> | |
|
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')} |
@@ -94,18 +93,16 b'' | |||
|
94 | 93 | %endif |
|
95 | 94 | </div> |
|
96 | 95 | %endif |
|
97 | </tbody> | |
|
98 | </table> | |
|
99 | 96 | </div> |
|
100 | 97 | |
|
101 | 98 | <div id="watched" class="table" style="display:none"> |
|
99 | %if c.following: | |
|
102 | 100 | <table> |
|
103 | 101 | <thead> |
|
104 | 102 | <tr> |
|
105 | 103 | <th class="left">${_('Name')}</th> |
|
106 | 104 | </thead> |
|
107 | 105 |
<tbody> |
|
108 | %if c.following: | |
|
109 | 106 | %for entry in c.following: |
|
110 | 107 | <tr> |
|
111 | 108 | <td> |
@@ -115,7 +112,6 b'' | |||
|
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())}')"> |
@@ -140,12 +136,16 b'' | |||
|
140 | 136 | </td> |
|
141 | 137 | </tr> |
|
142 | 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')} |
|
144 | </div> | |
|
146 | 145 | %endif |
|
147 |
|
|
|
146 | </div> | |
|
148 | 147 |
|
|
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> |
General Comments 0
You need to be logged in to leave comments.
Login now