brainstill / bsproj / templates / brainstill / idea_detail.html

{% extends "layout0.html" %}
{% load i18n brainstill comments %}

{% block content %}
  <h1>
    <span class="idea-number">#{{ idea.pk }} </span>
    <span class="idea-title">{{ idea }}</span>
    {% ranks_and_votes idea %}
  </h1>

  <p class="info">
    {% blocktrans with idea.project.get_absolute_url as project_url and idea.project as project %}
      Project: <a href="{{ project_url }}">{{ project }}</a>
    {% endblocktrans %}
    |
    {% blocktrans with idea.author as author and idea.date_created|date:"SHORT_DATETIME_FORMAT" as created %}
      Idea proposed at <span class="created-date">{{ created }}</span>
      by <span class="author">{{ author }}</span>.
    {% endblocktrans %}
  </p>
  <p class="description">{{ idea.description|linebreaksbr }}</p>

  {% get_comment_count for idea as comment_count %}
  {% ifequal comment_count 0 %}
    <p class="info">{% trans "No comments." %}</p>
  {% else %}
    <p class="info">
      {% blocktrans count comment_count as count %}{{ count }} comment.{% plural %}{{ count }} comments.{% endblocktrans %}
    </p>
  {% endifequal %}

  {% render_comment_list for idea %}

  {% with idea.get_absolute_url as next %}
    {% render_comment_form for idea %}
  {% endwith %}
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.