1. Kenneth Gonsalves
  2. fossconf

Source

fossconf / templates / web / talkfull.html

{% extends "base.html" %}
{% load i18n %}
{% load thumbnail %}
{% load comments %}
{% block centercontent %}

    <div class="more">
            <a href="{% url talks %}">
                {% trans "Back to index ..." %} 
            </a>
        </div>
    {% if p %}
    <table width = "auto" cellpadding="5" cellspacing="0" border="0" style="text-align: center;  clear:both;">
            <tr>
                <th>
                {% trans "Talk" %}
            </th>
            </tr>
        <tr>
                <td class ="talkdetail">
                {% trans " Talk Title" %}
            </td>
                    <td class ="talkdetail">
                {{p.title}}
            </td>
        </tr>

        <tr>
                    <td class ="talkdetail">
                {% trans "Speaker" %}
            </td>

            <td class ="talkdetail">
                        {% for spk in p.speaker.all %}

                    <a href="{% url delegate_by_id id=spk.id %}">
                        {{ spk.username.get_full_name }}
                    </a><br/>
                            {% endfor %}
                    </td>
            </tr>

            <tr>
            <td class ="talkdetail">
                {% trans "Level" %}
            </td>

            <td class ="check">
                {{p.get_level_display}}
            </td>
            </tr>

            <tr>
            <td class ="talkdetail">
                {% trans "Category" %}
            </td>
                    <td class ="check">
                {{p.category}}
            </td>
            </tr>

            <tr>
                    <td class ="talkdetail">
                {% trans "Accepted" %}
            </td>

                       <td class ="check">
                {{p.accepted}}
            </td>
            </tr>

            <tr>
                <td class ="talkdetail">
                {% trans "Scheduled" %}
            </td>
                    <td class ="check">
                {{p.scheduled}}
            </td>
            </tr>
            <tr>
                <td class ="talkdetail">
                    {% trans "Presentation Materials" %}
                </td>
                <td class ="slides">
                   {% if p.slides %}
                        <a  href="{{ p.slides.url }}">{% trans "Click to see the presentation materials" %}</a>
                    {% else  %}
                        {% trans "Presentation materials have not yet been added" %}
                    {% endif %} 
                </td>
            </tr>
            <tr>
                    <td class ="talkdetail">
                {% trans "Abstract" %}
            </td>
                    <td class ="check">
                {{p.abstract}}
            </td>
            </tr>
            <tr>
                <td class ="talkdetail">
                {% trans "Rating" %}
            </td>
                    <td class ="check">
                {{ p.getrating }}
            </td>
            </tr>

    </table>

    <div id='rating'>
             <h2>{% trans "Rate this talk" %}</h2>
            <p class= "warning">When rating a talk, please select 'reject' only if you feel the 
            talk is 
            completely unacceptable or against the goals of the conference. If you personally are not interested
            in the talk, select 'No Comment'. If you feel the talk should be there, select
             'Accept'.</p>
    </div> 
           <form action='.' method='POST'> 
          <table>
          
        {{ form }}
          </table>
                    <p><input type='Submit' value= "{% trans "Rate" %}" class="go"></p>
            </form>
    
    {% get_comment_count for p as comment_count %}

<hr class="space">
{% if comment_count %}
<p>This talk has {{ comment_count }} comments.</p>
<h4>Comments:</h4>
<hr class="space">
  {% get_comment_list for p as comment_list %}
  {% for comment in comment_list %}
    <p>{{ comment.comment }}..</p>
      <div class="postedby">
      
      Posted by:
      <a href="{% url delegate_by_id id=comment.user.delegate_user_name.all.0.id %}">
       {{comment.user.get_full_name}}</a>
      </div>
    
  {% endfor %}
{% else %}
<h5>Be the first to comment on this talk!!!</h5>
{% endif %}
    {% if request.user.is_authenticated %}
    <h4>Comment on this</h4>
    {% get_comment_form for p as form %}
    <form action="{% comment_form_target %}" method="POST"> 
      {{ form.comment }} 
      {{ form.content_type }} 
      {{ form.object_pk }} 
      {{ form.timestamp }} 
      {{ form.security_hash }} 
      <p><input type="hidden" name="next" value="{% url talk_by_id id=p.id %}" /></p>
      <p><input type="submit" value="Post comment" id="id_submit" /></p>
    </form> 
    {% else %}
      <h4>Please login or register if you wish to comment</h4>
    {% endif %}
<hr class="space">
   {% else %}
            <h3>{% trans "No details available " %}</h3><br>
        
        {% endif %}
        <div>
            <a class ="more" href="{% url talks %}">
                {% trans "Back to index ..." %} 
            </a>
        </div>
{% endblock %}