Skip to content

Commit

Permalink
Issue #17 fixed (#38)
Browse files Browse the repository at this point in the history
Add button link to view or edit speaker profile #17
---------

Co-authored-by: Marco A. Gutierrez <[email protected]>
  • Loading branch information
Darkboy17 and Marco A. Gutierrez authored Feb 15, 2024
1 parent 259641e commit 8ac2322
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 8ac2322

Please sign in to comment.