| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {% extends '_base.html' %}
- {% load helpers %}
- {% block header %}
- <div class="row">
- <div class="col-sm-8 col-md-9">
- <ol class="breadcrumb">
- <li><a href="{% url 'extras:tag_list' %}">Tags</a></li>
- <li>{{ tag }}</li>
- </ol>
- </div>
- <div class="col-sm-4 col-md-3">
- <form action="{% url 'extras:tag_list' %}" method="get">
- <div class="input-group">
- <input type="text" name="q" class="form-control" />
- <span class="input-group-btn">
- <button type="submit" class="btn btn-primary">
- <span class="fa fa-search" aria-hidden="true"></span>
- </button>
- </span>
- </div>
- </form>
- </div>
- </div>
- <div class="pull-right">
- {% if perms.taggit.change_tag %}
- <a href="{% url 'extras:tag_edit' slug=tag.slug %}" class="btn btn-warning">
- <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
- Edit this tag
- </a>
- {% endif %}
- {% if perms.taggit.delete_tag %}
- <a href="{% url 'extras:tag_delete' slug=tag.slug %}" class="btn btn-danger">
- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
- Delete this tag
- </a>
- {% endif %}
- </div>
- <h1>{% block title %}Tag: {{ tag }}{% endblock %}</h1>
- {% include 'inc/created_updated.html' with obj=tag %}
- <ul class="nav nav-tabs">
- <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
- <a href="{{ tag.get_absolute_url }}">Tag</a>
- </li>
- {% if perms.extras.view_objectchange %}
- <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
- <a href="{% url 'extras:tag_changelog' slug=tag.slug %}">Changelog</a>
- </li>
- {% endif %}
- </ul>
- {% endblock %}
- {% block content %}
- <div class="row">
- <div class="col-md-6">
- <div class="panel panel-default">
- <div class="panel-heading">
- <strong>Tag</strong>
- </div>
- <table class="table table-hover panel-body attr-table">
- <tr>
- <td>Name</td>
- <td>
- {{ tag.name }}
- </td>
- </tr>
- <tr>
- <td>Slug</td>
- <td>
- {{ tag.slug }}
- </td>
- </tr>
- <tr>
- <td>Tagged Items</td>
- <td>
- {{ items_count }}
- </td>
- </tr>
- <tr>
- <td>Color</td>
- <td>
- <span class="label color-block" style="background-color: #{{ tag.color }}"> </span>
- </td>
- </tr>
- </table>
- </div>
- <div class="panel panel-default">
- <div class="panel-heading">
- <strong>Comments</strong>
- </div>
- <div class="panel-body rendered-markdown">
- {% if tag.comments %}
- {{ tag.comments|gfm }}
- {% else %}
- <span class="text-muted">None</span>
- {% endif %}
- </div>
- </div>
- </div>
- <div class="col-md-6">
- {% include 'panel_table.html' with table=items_table heading='Tagged Objects' %}
- {% include 'inc/paginator.html' with paginator=items_table.paginator page=items_table.page %}
- </div>
- </div>
- {% endblock %}
|