freieit / freieit / templates / experts.html

{% extends "base.html" %}
{% load static %}
{% load url from future %}

{% block content %}


    <h2>{{ num_experts }} ExpertIn{{ experts|length|pluralize:"nen" }} {% if tag %}mit Schlagwort "{{ tag }}"{% endif %} gefunden</h2>
    <form action="#" enctype="text/plain" method="post">
      <input type="text" name="suche" placeholder="Ergebnis über Schlagworte einschränken" value=""/>
      <input type="submit" value="&gt;"/>

  {% for e in page %}
      <img src="{{ e.image.url }}" alt="Foto von {{ e }}"/>
      <h2><a href="{% url "" e.user.username %}" title="E-Mail senden">{{ e }}</a> {{ }}</h2>
      <dd>{% for tag in e.keywords.all %}
      <a href=/tag/{{ tag.slug }}>{{ tag }}</a> 
      {% endfor %}</dd>

  {% empty %}
    No experts found
    {% comment %}
      TODO: do some styling
    {% endcomment %}
  {% endfor %}

    {% if page.has_previous %}
      <a href="{% url "" page.previous_page_number %}">&laquo;</a>
    {% endif %}
    Seite {{ page.number }}/{{ page.paginator.num_pages }}
    {% if page.has_next %}
      <a href="{% url "" page.next_page_number %}">&raquo;</a>
    {% endif %}


{% endblock content %}
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
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.