~yeliabmas/sloecode/sloecode-template

« back to all changes in this revision

Viewing changes to sloecode/templates/wiki/page.html

  • Committer: Sam Bailey
  • Date: 2012-10-30 03:21:53 UTC
  • Revision ID: yeliabmas@gmail.com-20121030032153-knnb3frcrjmpzrrc
Added a read only option to the wiki. Can now be viewed by anyone with project read access.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        {% endfor %}
13
13
    </ul>
14
14
    <ul class='wiki_action_button_wrapper'>
 
15
      {% if not read_only %}
15
16
        <li>{{ h.link_to("Edit", fragments['edit_url'], class="wiki_action_button") }}</li>
16
 
        <li>{{ h.link_to("Browse Wiki Contents", fragments['listing_url'], class="wiki_action_button") }}</li>
17
 
        {% if not disable_newfile %}
18
 
          <li>{{ h.link_to("New File", fragments['newfile_url'], class="wiki_action_button") }}</li>
19
 
        {% endif %}
 
17
      {% endif %}
 
18
      <li>{{ h.link_to("Browse Wiki Contents", fragments['listing_url'], class="wiki_action_button") }}</li>
 
19
      {% if (not disable_newfile or disable_newfile == None) and not read_only %}
 
20
        <li>{{ h.link_to("New File", fragments['newfile_url'], class="wiki_action_button") }}</li>
 
21
      {% endif %}
20
22
    </ul>
21
23
    <div class='clear'></div>
22
24
</div>