Skip to content

Commit

Permalink
explaining why admins see extra thing
Browse files Browse the repository at this point in the history
  • Loading branch information
benabraham committed Aug 30, 2023
1 parent 12ac014 commit 7690af7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 6 additions & 3 deletions templates/program/__speaker_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ <h3 class="h1 mt-3 mt-sm-4">{{ speaker.full_name }}</h3>
{% endif %}
{{ speaker.bio|markdown }}
{% if user.is_staff %}
<a class="btn btn-lg btn-danger" href="https://pretalx.com/orga/event/pycon-cz-23/speakers/{{ speaker.pretalx_code }}">
Edit speaker in preTALX
</a>
<p>
<a class="btn btn-danger" href="https://pretalx.com/orga/event/pycon-cz-23/speakers/{{ speaker.pretalx_code }}">
Edit speaker in preTALX
</a>
<i>you see this because you’re logged in as administrator</i>
</p>
{% endif %}
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions templates/program/_session_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,12 @@ <h3 class="h4 mt-3">
</div>

{% if user.is_staff %}
<a class="btn btn-lg btn-danger my-5" href="https://pretalx.com/orga/event/pycon-cz-23/submissions/{{ session.pretalx_code }}">
Edit session in preTALX
</a>
<p>
<a class="btn btn-danger my-5" href="https://pretalx.com/orga/event/pycon-cz-23/submissions/{{ session.pretalx_code }}">
Edit session in preTALX
</a>
<i>you see this because you’re logged in as administrator</i>
</p>
{% endif %}
{% comment %}{% if session.length and 'h' in session.length %}
<p>
Expand Down
4 changes: 2 additions & 2 deletions templates/sponsors/sponsors_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>Sponsors and partners</h1>

<div class="row">
<div class="col-sm col-md-6">
<p class="lead">We’re grateful to companies that help us organize PyCon CZ and allow keeping ticket prices as low as&nbsp;possible.</p>
<p class="lead">We’re grateful to companies that help us organize PyCon CZ and allow keeping ticket prices as low as&nbsp;possible.</p>
</div>
<div class="col-sm col-md">
<p>
Expand Down Expand Up @@ -99,7 +99,7 @@ <h3 class="PC-sponsor-detail-heading {% if not sponsor.description %}d-none d-md

{% if user.is_staff and sponsor.description %}
<div class="alert alert-info">
ℹ️ {{ sponsor.description|markdown|striptags|wordcount }} words
ℹ️ {{ sponsor.description|markdown|striptags|wordcount }} words <i>you see this because you’re logged in as administrator</i>
</div>
{% endif %}

Expand Down

0 comments on commit 7690af7

Please sign in to comment.