Changeset 27294
- Timestamp:
- 2013-05-02T19:18:38+12:00 (11 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/macros/document.dm
r27293 r27294 124 124 ####################################################################### 125 125 126 # The div that loads the user comments that were already submitted 126 127 # associated javascript function loadUserComments is in style.dm's _globalscripts_ macro 127 128 _usercomments_ { … … 131 132 } 132 133 133 134 134 # Display the add-user-comment form on actual document pages and not when browsing/searching 135 135 # This means the form should only be displayed on pages where the _cgiargd_ (the docid) is set 136 137 # If the user's logged in, show the comment form, else show the link to the login page 138 _addusercomment_ { 139 _If_(_cgiargd_, 140 _If_(_cgiargun_,_usercommentform_,_loginlink_) 141 ) 142 } 143 144 _doc-url_ {_gwcgi_?e=_compressedoptions_&a=_cgiarga_&c=_cgiargc_&cl=_cgiargcl_&d=_cgiargd_} 145 146 _loginlink_ { 147 <div id="usercommentlink"><a href="_doc-url_&uan=1">_textaddusercomment_</a></div> 148 } 136 149 137 150 # For getting the submitbutton to make Ajax calls, see … … 139 152 # http://stackoverflow.com/questions/8869341/ajax-form-submit-with-submit-button 140 153 141 _addusercomment_ { 142 143 _If_(_cgiargd_, 144 154 _usercommentform_ { 145 155 <form name="AddUserCommentForm"> 146 <p>_textcommentusername_ <input type="text" name="username"></p> 156 <!--<p>_textcommentusername_ <input type="text" name="username"></p>--> 157 <input type=hidden name="username" value="_cgiargun_"> 147 158 <p> 148 159 _textaddusercomment_ … … 154 165 <label id="usercommentfeedback"></label> 155 166 </form> 156 ) 167 157 168 158 169 <script type="text/javascript"> … … 656 667 </div> <!-- document:footer --> 657 668 658 <div class="navarrowsbottom">659 _navarrowsbottom_660 </div>661 669 662 670 <center> … … 669 677 </td></tr></table> 670 678 </center> 679 680 <div class="navarrowsbottom"> 681 _navarrowsbottom_ 682 </div> 683 671 684 672 685 _endspacer__htmlfooter_ -
main/trunk/greenstone2/macros/english.dm
r27293 r27294 336 336 } 337 337 338 _textcommentusername_ {User name :}339 _textaddusercomment_ { Comment:}340 _textaddcomment_ { addcomment}338 _textcommentusername_ {User name} 339 _textaddusercomment_ {Add Comment} 340 _textaddcomment_ {submit comment} 341 341 _textcommentsubmitted_ {Comment Submitted} 342 _text-is-empty_ {Can't add empty values} 342 _text-is-empty_ {Comment was empty.} 343 _text-usercomments-section_ {Comments} 343 344 344 345 _textgoto_ {go to page} -
main/trunk/greenstone2/macros/style.dm
r27293 r27294 330 330 // (we do this here for all values together to hopefully avoid reloading the page for each comment) 331 331 332 if(metapos > 0) \{ 333 var heading=document.createElement("div"); 334 var attr=document.createAttribute("class"); 335 attr.nodeValue="usercommentheading"; 336 heading.setAttributeNode(attr); 337 var txt=document.createTextNode("_text-usercomments-section_"); 338 heading.appendChild(txt); 339 usercommentdiv.appendChild(heading); 340 \} 341 332 342 for(var i = 0; i < metapos; i++) \{ 333 334 343 var comment_record = comments_arraymap[i]; 335 344 -
main/trunk/greenstone2/web/style/style.css
r26549 r27294 334 334 text-transform:capitalize; 335 335 } 336 337 #usercomments { 338 margin: 10px 0; 339 } 340 341 .usercommentheading { 342 font-weight: bold; 343 color: #006666; 344 border-top: solid 1px black; 345 } 346 347 .usercomment { 348 margin: 10px 0; 349 } 350 351 #usercommentlink { 352 margin: 10px 0 20px 0; 353 } 354 355 #usercommentlink a { 356 text-decoration: none; 357 font-weight: bold; 358 }
Note:
See TracChangeset
for help on using the changeset viewer.