summaryrefslogtreecommitdiff
path: root/objectapp/templates/objectapp/_gbobject_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'objectapp/templates/objectapp/_gbobject_detail.html')
-rw-r--r--objectapp/templates/objectapp/_gbobject_detail.html148
1 files changed, 148 insertions, 0 deletions
diff --git a/objectapp/templates/objectapp/_gbobject_detail.html b/objectapp/templates/objectapp/_gbobject_detail.html
new file mode 100644
index 00000000..b9d1b912
--- /dev/null
+++ b/objectapp/templates/objectapp/_gbobject_detail.html
@@ -0,0 +1,148 @@
+{% load tagging_tags comments i18n %}
+<div id="gbobject-{{ object.pk }}" class="hgbobject{% if object.featured %} featured{% endif %} span-16 last">
+ <div class="gbobject-header span-16 last">
+ <h2 class="gbobject-title">
+ <a href="{{ object.get_absolute_url }}" title="{{ object.title }}" rel="bookmark">
+ {{ object.title }}
+ </a>
+ </h2>
+ <p class="gbobject-info">
+ {% if object.authors.count %}
+ {% trans "Written by" %}
+ {% for author in object.authors.all %}
+ <span class="vcard author">
+ <a href="{% url objectapp_author_detail author %}" class="fn nickname url" rel="author"
+ title="{% blocktrans with author as author %}Show {{ author }} gbobjects{% endblocktrans %}">{{ author }}</a>
+ </span>{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ {% trans "on" %}
+ {% else %}
+ {% trans "Written on" %}
+ {% endif %}
+ <abbr class="published" title="{{ object.creation_date|date:"c" }}Z">{{ object.creation_date|date:"DATE_FORMAT" }}</abbr>
+ {% if object.objecttypes.count %}
+ {% trans "in" %}
+ {% for Objecttype in object.objecttypes.all %}
+ <a href="{{ Objecttype.get_absolute_url }}" title="{{ Objecttype }}" rel="tag Objecttype">{{ Objecttype }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}.
+ </p>
+
+</div>
+
+</div>
+<p>
+ <b>Name: </b> {{ object.title }} <br/>
+
+ {% if object.get_rendered_nbh.plural %}
+ <b> Plural Name :<nbsp></b>
+ {{object.get_rendered_nbh.plural}} <br/>
+ {% endif %}
+ {% if object.get_rendered_nbh.altnames %}
+ <b> Alternate names :<nbsp></b>
+ {{object.get_rendered_nbh.altnames}} <br/>
+{% endif %}
+
+ {% if object.get_rendered_nbh.member_of %}
+
+
+ <b> Member of Metatypes :<nbsp></b>
+
+ {% for mkey,mvalue in object.get_rendered_nbh.member_of.items %}
+ <a href="{{mvalue}}">{{mkey}}</a>;
+ {% endfor %}<br/>
+ {% endif %}
+
+ {% if object.get_rendered_nbh.relations %}
+
+
+ {% for relkey,relvalue in object.get_rendered_nbh.relations.items %}
+ <b>{{relkey}}:<nbsp></b>
+{% for relk, relv in relvalue.items %}
+<a href="{{relv}}">{{relk}}</a>;
+ {% endfor %}<br/>
+{% endfor %}
+{% endif %}
+
+ {% if object.get_rendered_nbh.attributes %}
+
+
+
+<b>Attributes: <nbsp> </b>
+
+{% for items in object.get_rendered_nbh.attributes %}
+ {{items}};
+{% endfor %} <br/>
+{% endif %}
+
+</p>
+
+
+
+
+ <div class="gbobject-body span-16 last">
+ {% if object.image %}
+ <div class="gbobject-image">
+ <p>
+ <a href="{{ object.get_absolute_url }}" rel="bookmark">
+<img src="{{ object.image.url }}" alt="{{ object.title }}" class="left" />
+ </a>
+ </p>
+ </div>
+ {% endif %}
+ <div class="gbobject-content">
+ {{ object_content }}
+ </div>
+ </div>
+
+ <div class="gbobject-footer">
+ <p class="gbobject-tags span-16 last">
+ <strong>{% trans "Tags" %}</strong> :
+ {% tags_for_object object as tag_list %}
+ {% for tag in tag_list %}
+ <a href="{% url objectapp_tag_detail tag %}"
+ title="Tag {{ tag }}" rel="tag">{{ tag }}</a>
+ {% empty %}
+ <span>{% trans "No tags" %}</span>
+ {% endfor %}
+ </p>
+
+ <p class="gbobject-shorturl span-16 last">
+ <strong>{% trans "Short url" %}</strong> :
+ <a href="{{ object.short_url }}" title="{{ object.title }}" rel="shortlink">
+ {{ object.short_url }}
+ </a>
+ </p>
+
+ <p class="gbobject-comments span-16 last">
+ <strong>{% trans "Discussions" %}</strong> :
+ {% with object.comments.count as comment_count %}
+ {% if comment_count %}
+ <a href="{{ object.get_absolute_url }}#comments" title="{{ object.title }}">
+ {% blocktrans count comment_count as comment_count %}{{ comment_count }} comment{% plural %}{{ comment_count }} comments{% endblocktrans %}
+ </a>
+ {% else %}
+ {% if object.comments_are_open %}
+ {% trans "No comments yet." %}
+ <a href="{{ object.get_absolute_url }}#comments" title="{{ object.title }}">
+ {% trans "Be first to comment!" %}
+ </a>
+ {% else %}
+ {% trans "Comments are closed." %}
+ {% endif %}
+ {% endif %}
+ {% endwith %}
+ {% with object.pingbacks.count as pingback_count %}
+ {% if pingback_count %}
+ <a href="{{ object.get_absolute_url }}#pingbacks" title="{{ object.title }}">
+ {% blocktrans count pingback_count as pingback_count %}{{ pingback_count }} pingback{% plural %}{{ pingback_count }} pingbacks{% endblocktrans %}
+ </a>
+ {% endif %}
+ {% endwith %}
+ {% with object.trackbacks.count as trackback_count %}
+ {% if trackback_count %}
+ <a href="{{ object.get_absolute_url }}#trackbacks" title="{{ object.title }}">
+ {% blocktrans count trackback_count as trackback_count %}{{ trackback_count }} trackback{% plural %}{{ trackback_count }} trackbacks{% endblocktrans %}
+ </a>
+ {% endif %}
+ {% endwith %}
+ </p>
+ </div>