Source

HackersEdge / he_one / templates / he_one / pcfile_detail.html

Full commit
{% extends "base.html" %}
{% load hackers_edge %}
{% load url from future %}

{% block css %}.jtable tr .ui-state-hover { font-weight: normal; }{% endblock %}

{% block title %}{% if dns %}{{dns}}{% else %}{{object}}{% endif %}{% endblock %}

{% block jquery %}
{{block.super}}
  $(".jtable th").each(function(){ $(this).addClass("ui-state-default"); });
  $(".jtable td").each(function(){ $(this).addClass("ui-widget-content"); });
  $(".jtable tr").hover(function(){
   $(this).children("td").addClass("ui-state-hover");
  }, function(){
   $(this).children("td").removeClass("ui-state-hover");
  });
{% endblock %}

{% block tools %}
      {{block.super}}
      {% if host %}
      {% if host.is_router %}<a href="#">{% showicon "wrench" %}Router tool</a>{% endif %}
      {% endif %}
{% endblock %}

{% block content %}
<h2>{% if dns %}{{dns}}{% else %}{{object}}{% endif %}</h2>
{% if dns %}
{{object.content}}
{% else %}
<table class="jtable" width="600">
<thead><tr><th>Host</th><th>Creator</th><th>Created on</th><th>Patch level</th></tr></thead>
<tbody>
{% for file in object.filepermission_set.all %}
{% if file.host.owner == user %}
<tr><td>{{file.host|link}}</td><td>{{file.creator}}</td><td>{{file.create_date}}</td><td>{{file.patch}}</td></tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}