~james-page/ubuntu/natty/cobbler/fix-764391

« back to all changes in this revision

Viewing changes to .pc/36_tainted_file_path.patch/web/cobbler_web/templates/snippet_list.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2011-04-04 13:14:13 UTC
  • Revision ID: james.westby@ubuntu.com-20110404131413-tmjrc6lcvcm2vykh
Tags: 2.1.0-0ubuntu4
debian/patches/36_tainted_file_path.patch: cherry-pick fix
to tainted file path errors, LP: #750402

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends 'master.tmpl' %}
 
2
{% block content %}
 
3
<fieldset>
 
4
  <legend id="listheader" class="action"><span id="shadeState"></span> Cobbler Kickstart Snippets</legend>
 
5
  <hr />
 
6
  <!-- This is kind weird, but force the name "snippet"
 
7
  because we know this is the ksfile page. If this gets moved
 
8
  to generic_list, then it can be hacked around -->
 
9
  <ul id="listactions">
 
10
    <li><a class="action" href="/cobbler_web/{{ what }}/edit">Create new snippet</a><li>
 
11
  </ul>
 
12
  <table id="listitems" border="0" width="100%" cellspacing="0" cellpadding="2">
 
13
    <thead>
 
14
      <td>File</td>
 
15
      <td>Actions</td>
 
16
    </thead>
 
17
    <tbody>
 
18
      {% for snippet,shortname,option in snippets %}
 
19
      <tr class="{% cycle 'rowodd' 'roweven' %}">
 
20
        <td>{{ shortname }}</td>
 
21
        {% if option %}
 
22
        <td>
 
23
        {% ifequal option "editable" %}<span class="action" onClick="window.location='/cobbler_web/snippet/edit/{{ snippet }}'">Edit</a> {% endifequal %}
 
24
        </td>
 
25
        {% endif %}
 
26
      </tr>
 
27
      {% endfor %}
 
28
    </tbody>
 
29
  </table>
 
30
</fieldset>
 
31
{% endblock content %}