Skip to content

Commit

Permalink
Issue #17 fixed
Browse files Browse the repository at this point in the history
Add button link to view or edit speaker profile #17
  • Loading branch information
Darkboy17 committed Feb 15, 2024
1 parent 1c16f89 commit 54f9ed2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pretalx/cfp/templates/cfp/event/cfp.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ <h1>{{ cfp.headline|default:"" }}</h1>
{% translate "Edit or view your proposals" %}
</a>
{% endif %}

{% if has_submissions or request.user.is_anonymous %}
<a class="btn btn-info btn-lg btn-block" href="{{ request.event.urls.user }}">
{% translate "View or edit speaker profile" %}
</a>
{% endif %}

<a class="btn btn-success btn-lg btn-block {% if not cfp.is_open and not access_code.is_valid %}disabled{% endif %}"
href="{{ request.event.urls.submit }}{{ submit_qs }}">
{% if cfp.is_open or access_code.is_valid %}
Expand Down
7 changes: 7 additions & 0 deletions src/pretalx/cfp/templates/cfp/event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
{% translate "Edit or view your proposals" %}
</a>
{% endif %}

{% if not is_html_export %}
<a class="btn btn-info btn-lg btn-block" href="{{ request.event.urls.user }}">
{% translate "View or edit speaker profile" %}
</a>
{% endif %}

{% endif %}
{% if request.event.current_schedule and request.event.feature_flags.show_schedule %}
<a class="btn btn-success btn-lg btn-block" href="{{ request.event.urls.schedule }}">
Expand Down

0 comments on commit 54f9ed2

Please sign in to comment.