Commit 9e9ca83fbf6b69622f213071dfdcc8fdbb6e2813
1 parent
9a4d0a2c
Exists in
master
and in
1 other branch
Updating about page
Showing
3 changed files
with
21 additions
and
20 deletions
Show diff stats
src/web/static/css/thickbox.css
src/web/static/js/thickbox.js
| ... | ... | @@ -193,7 +193,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 193 | 193 | urlNoQuery = url.split('TB_'); |
| 194 | 194 | $("#TB_iframeContent").remove(); |
| 195 | 195 | if(params['modal'] != "true"){//iframe no modal |
| 196 | - $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>"); | |
| 196 | + $("#TB_window").append("<div id='TB_title'><h1 id='TB_ajaxWindowTitle'>"+caption+"</h1><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>"); | |
| 197 | 197 | }else{//iframe modal |
| 198 | 198 | $("#TB_overlay").unbind(); |
| 199 | 199 | $("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>"); |
| ... | ... | @@ -201,7 +201,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 201 | 201 | }else{// not an iframe, ajax |
| 202 | 202 | if($("#TB_window").css("display") != "block"){ |
| 203 | 203 | if(params['modal'] != "true"){//ajax no modal |
| 204 | - $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"); | |
| 204 | + $("#TB_window").append("<div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); | |
| 205 | 205 | }else{//ajax modal |
| 206 | 206 | $("#TB_overlay").unbind(); |
| 207 | 207 | $("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>"); | ... | ... |
src/web/templates/package.html
| 1 | 1 | $def with (pkg) |
| 2 | +<h1>$pkg['package']: $pkg['description']</h1> | |
| 2 | 3 | |
| 4 | + <div class="align-right"> | |
| 5 | + <button type="button" class="like_button" onclick=";return false;" id="like" > | |
| 6 | + <img src="/static/images/pixel-vfl73.gif" alt=""> | |
| 7 | + </button> | |
| 8 | + | |
| 9 | + <button type="button" class="dislike_button" onclick=";return false;" id="dislike" > | |
| 10 | + <img src="/static/images/pixel-vfl73.gif" alt=""> | |
| 11 | + </button> | |
| 12 | + | |
| 13 | + <div id="update_count" style="float:left;"> | |
| 14 | + <?php include ('update_box.php')?> | |
| 15 | + </div> | |
| 16 | + <br clear="all" /> | |
| 17 | + <div id="voting_result"> | |
| 18 | + </div> | |
| 19 | + </div> | |
| 20 | +<br /> | |
| 21 | +<br /> | |
| 3 | 22 | <div class="graybox"> |
| 4 | 23 | <table><tr><td class="noborder"> |
| 5 | 24 | <h2>Details</h2> |
| ... | ... | @@ -45,20 +64,4 @@ $for facet, tags in pkg['tag'].items(): |
| 45 | 64 | |
| 46 | 65 | </tr></table> |
| 47 | 66 | </div> |
| 48 | - <div> | |
| 49 | - <button type="button" class="like_button" onclick=";return false;" id="like-$pkg" > | |
| 50 | - <img src="/static/images/pixel-vfl73.gif" alt=""> | |
| 51 | - <span>Like</span></button> | |
| 52 | - | |
| 53 | - <button type="button" class="dislike_button" onclick=";return false;" id="dislike-$pkg" > | |
| 54 | - <img src="/static/images/pixel-vfl73.gif" alt=""> | |
| 55 | - </button> | |
| 56 | - | |
| 57 | - <div id="update_count" style="float:left;"> | |
| 58 | - <?php include ('update_box.php')?> | |
| 59 | - </div> | |
| 60 | - <br clear="all" /> | |
| 61 | - <div id="voting_result"> | |
| 62 | - </div> | |
| 63 | - </div> | |
| 64 | 67 | ... | ... |