Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. <!--=============================================
  2. | BASE.HTML |
  3. =============================================-->
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7.  
  8. <head>
  9. <link type="text/css" rel="stylesheet" href="/static/main.css" />
  10. <title>CS 253 Final Project</title>
  11. </head>
  12.  
  13. <body>
  14. <!-- HEADER OF THE WIKI PAGE -->
  15.  
  16. <!-- If user is log in, we show username in main page and the logout link. If username hasn't log in, we show the login link and the
  17. signup link-->
  18. {% if username %}
  19. <div class="login-username" >Log as {{username}}</div>
  20. <a class="login-logout" href="/wiki/logout">(logout)</a>
  21. {% else %}
  22. <a class="login-login" href="/wiki/login">login</a>
  23. <a class="login-signup" href="/wiki/signup">signup</a>
  24. {% endif %}
  25.  
  26. <!-- We show the edit link and the history link if applies (If wikipage already exist, we show the history link). The edit link includes version
  27. parameters if applies -->
  28. {% if wikipage %}
  29. {% if show_edit %}
  30. {% if history_flag %}
  31. <a class="login-edit" href=/wiki/_edit{{wikipage.pathname}}?v={{wikipage.version}}>edit</a>
  32. {% else %}
  33. <a class="login-edit" href=/wiki/_edit{{wikipage.pathname}}>edit</a>
  34. {% endif %}
  35. {% endif %}
  36. {% if show_history %}
  37. <a class="login-history" href=/wiki/_history{{wikipage.pathname}}>history</a>
  38. {% endif %}
  39. {% endif %}
  40.  
  41. <!-- We include a horizontal line that separates the header from the body of the page -->
  42. <div class="h_line"></div>
  43.  
  44. {% block content %}
  45.  
  46. {% endblock %}
  47.  
  48. </body>
  49.  
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement