diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-11-09 15:35:26 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-11-09 15:35:26 +0200 |
commit | 981855ad27c331a03dbfcec24bd6b49c30681c94 (patch) | |
tree | c2562266267cb17504334ac0e87df581f3c25b18 /servo/templates/accounts/calendars.html | |
parent | 96432a9a4ff849da6c3f450253198b83cf3fbde9 (diff) | |
download | Servo-981855ad27c331a03dbfcec24bd6b49c30681c94.tar.gz Servo-981855ad27c331a03dbfcec24bd6b49c30681c94.tar.bz2 Servo-981855ad27c331a03dbfcec24bd6b49c30681c94.zip |
Remove username from profile page URLs
Diffstat (limited to 'servo/templates/accounts/calendars.html')
-rwxr-xr-x | servo/templates/accounts/calendars.html | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/servo/templates/accounts/calendars.html b/servo/templates/accounts/calendars.html index c10276c..72a83f9 100755 --- a/servo/templates/accounts/calendars.html +++ b/servo/templates/accounts/calendars.html @@ -4,26 +4,26 @@ {% block toolbar %} <div class="btn-group"> - <a href="{% url 'calendars-create' username=request.user.username %}" data-modal="#modal" class="btn"><i class="icon-plus"></i> {% trans "New Calendar" %}</a> -{% if calendar %} - <a href="{% url 'calendars.event.edit' username=request.user.username cal_pk=calendar.pk %}" class="btn">{% trans "New Event" %}</a> -{% endif %} + <a href="{% url 'calendars-create' %}" data-modal="#modal" class="btn"><i class="icon-plus"></i> {% trans "New Calendar" %}</a> + {% if calendar %} + <a href="{% url 'calendars.event.edit' cal_pk=calendar.pk %}" class="btn">{% trans "New Event" %}</a> + {% endif %} </div> <div class="btn-group"> -{% if calendar %} - <a href="print/" class="btn window"><i class="icon-print"></i> {% trans "Print" %}</a> - <a href="{% url 'calendars-edit' request.user.username calendar.pk view %}" data-modal="#modal" class="btn"><i class="icon-pencil"></i> {% trans "Edit" %}</a> - {% if perms.servo.delete_calendar %} - <a href="{{ calendar.get_absolute_url }}delete/" data-modal="#modal" class="btn"><i class="icon-trash"></i> {% trans "Delete" %}</a> - {% else %} - <a href="" class="btn disabled">{% trans "Delete" %}</a> - {% endif %} -{% endif %} + {% if calendar %} + <a href="print/" class="btn window"><i class="icon-print"></i> {% trans "Print" %}</a> + <a href="{% url 'calendars-edit' calendar.pk view %}" data-modal="#modal" class="btn"><i class="icon-pencil"></i> {% trans "Edit" %}</a> + {% if perms.servo.delete_calendar %} + <a href="{{ calendar.get_absolute_url }}delete/" data-modal="#modal" class="btn"><i class="icon-trash"></i> {% trans "Delete" %}</a> + {% else %} + <a href="" class="btn disabled">{% trans "Delete" %}</a> + {% endif %} + {% endif %} </div> <div class="btn-group"> - <a href="download/" class="btn {% if not calendar %}disabled{% endif %}"><i class="icon-download"></i> {% trans "Download" %}</a> + <a href="download/" class="btn {% if not calendar %}disabled{% endif %}"><i class="icon-download"></i> {% trans "Download" %}</a> </div> {% endblock toolbar %} @@ -31,25 +31,25 @@ {% block second_row %} <div class="row-fluid"> - <div class="span3"> - <ul class="nav nav-list"> - <li class="nav-header">{% trans "Calendars" %}</li> - {% for c in calendars %} - <li class="{% active request c.pk '/' %}"> - <a href="{% url 'calendars.view' pk=c.pk username=request.user.username view='week' %}">{{ c.title }}<span class="badge pull-right">{{ c.get_unfinished_count }}</span></a> - </li> - {% endfor %} - </ul> - </div> - - <div class="span9"> + <div class="span3"> + <ul class="nav nav-list"> + <li class="nav-header">{% trans "Calendars" %}</li> + {% for c in calendars %} + <li class="{% active request c.pk '/' %}"> + <a href="{% url 'calendars.view' pk=c.pk view='week' %}">{{ c.title }}<span class="badge pull-right">{{ c.get_unfinished_count }}</span></a> + </li> + {% endfor %} + </ul> + </div> + + <div class="span9"> {% block detail_view %} - <h1 class="muted text-center">{% trans "No calendar selected" %}</h1> + <h1 class="muted text-center">{% trans "No calendar selected" %}</h1> {% endblock detail_view %} - </div> + </div> </div> {% endblock second_row %} {% block crumbs %} - <li class="active"><a href="{% url 'calendars-list' username=request.user.username %}">{% trans "Calendars" %}</a></li> +<li class="active"><a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a></li> {% endblock crumbs %} |