Skip to content

Commit

Permalink
Make template format consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Sep 4, 2024
1 parent 95a2892 commit fd56614
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 5 additions & 3 deletions pretalx_pages/templates/pretalx_pages/delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
<h1>{% trans "Delete a page" %}</h1>
<form action="" method="post" class="form-horizontal">
{% csrf_token %}
<p>{% blocktrans trimmed with name=page.name %}
Are you sure you want to delete the page <strong>{{ name }}</strong>?
{% endblocktrans %}</p>
<p>
{% blocktrans trimmed with name=page.name %}
Are you sure you want to delete the page <strong>{{ name }}</strong>?
{% endblocktrans %}
</p>
<div class="form-group submit-group">
<a href="{% url "plugins:pretalx_pages:index" event=request.event.slug %}" class="btn btn-default btn-cancel">
{% trans "Cancel" %}
Expand Down
5 changes: 1 addition & 4 deletions pretalx_pages/templates/pretalx_pages/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ <h1>{% trans "Page" %}</h1>
</fieldset>
<fieldset id="content">
<legend>{% trans "Page content" %}</legend>

{% bootstrap_field form.text layout="event" %}
</fieldset>
{% include "orga/includes/submit_row.html" %}
Expand All @@ -27,9 +26,7 @@ <h1>{% trans "Page" %}</h1>
<div class="col-xs-12 col-lg-2">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
{% trans "Page history" %}
</h3>
<h3 class="panel-title">{% trans "Page history" %}</h3>
</div>
{% include "common/logs.html" with entries=page.logged_actions %}
</div>
Expand Down
13 changes: 7 additions & 6 deletions pretalx_pages/templates/pretalx_pages/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
{% load rules %}

{% block nav_link %}
{% has_perm 'agenda.view_schedule' request.user request.event as can_view_schedule %}{% if can_view_schedule %}{{ request.event.urls.schedule }}{% else %}{{ request.event.urls.base }}{% endif %}
{% has_perm 'agenda.view_schedule' request.user request.event as can_view_schedule %}
{% if can_view_schedule %}
{{ request.event.urls.schedule }}
{% else %}
{{ request.event.urls.base }}
{% endif %}
{% endblock %}

{% block title %}{{ page_title }} :: {{ event.name }}{% endblock %}
{% block content %}

<h2>{{ page_title }}</h2>
<article>
{{ content|safe }}
</article>

<article>{{ content|safe }}</article>
{% endblock %}

0 comments on commit fd56614

Please sign in to comment.