Private
Public Access
1
0

first cut at followers

This commit is contained in:
Sander Roosendaal
2020-06-02 17:29:13 +02:00
parent 2ed9dd02cf
commit 2fcd9902bb
6 changed files with 134 additions and 2 deletions

View File

@@ -0,0 +1,47 @@
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% load tz %}
{% block scripts %}
{% include "monitorjobs.html" %}
{% endblock %}
{% block title %}Comment Session {% endblock %}
{% block main %}
<h1>Comments {{ plannedession.name }}</h1>
<ul class="main-content">
<li class="grid_2">
{% for c in comments %}
<p>
{{ c.created }}
<b>{{ c.user.first_name }} {{ c.user.last_name }}</b>
<div class="talk-bubble tri-right left-top">
<div class="talktext">
{{ c.comment }}
</div>
</div>
</p>
{% endfor %}
<form enctype="multipart/form-data" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Save">
</form>
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% if 'racing' in active %}
{% include 'menu_racing.html' %}
{% else %}
{% include 'menu_plan.html' %}
{% endif %}
{% endblock %}

View File

@@ -160,12 +160,14 @@
<div id="registerbuttons">
{% if request.user.is_anonymous %}
<p>
Registered users of rowsandall.com can participate in this challenge. Participation is free, unless specified differently in the race comment above.
Registered users of rowsandall.com can participate in this challenge.
Participation is free, unless specified differently in the race comment above.
{% if race.sessiontype == 'race' %}
<a href="/rowers/virtualevent/{{ race.id }}/register"><h3>Register</h3></a>
{% else %}
<a href="/rowers/virtualevent/{{ race.id }}/registerindoor"><h3>Register</h3></a>
{% endif %}
<a href="/rowers/virtualevent/{{ race.id }}/follow/"><h3>Follow this challenge</h3></a>
</p>
{% else %}
<p>
@@ -184,6 +186,7 @@
{% else %}
<a href="/rowers/virtualevent/{{ race.id }}/registerindoor"><h3>Register</h3></a>
{% endif %}
<a href="/rowers/virtualevent/{{ race.id }}/follow/"><h3>Follow this challenge</h3></a>
</p>
{% endif %}
{% if button == 'submitbutton' %}