diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2024-05-26 17:01:44 +0100 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-05-26 17:01:44 +0100 | 
| commit | 36bf3611026db0722e94050495fbf17f33479b61 (patch) | |
| tree | 3472d313c11c3607d373b8dbaf171f086c7cd196 /views/event.handlebars | |
| parent | 0f6c06d3b37dbc277b211521a062223d96c540d0 (diff) | |
De-emphasise editing buttons in public pages
Diffstat (limited to 'views/event.handlebars')
| -rwxr-xr-x | views/event.handlebars | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/views/event.handlebars b/views/event.handlebars index 5f5f831..cd1645a 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -12,8 +12,6 @@    <div class="col-lg-3 ml-2 edit-buttons">      {{#if editingEnabled}}        <button type="button" id="editEvent" class="button button--primary" {{#if eventHasConcluded}}disabled{{/if}} data-event-id="{{eventData.id}}" data-toggle="modal" data-target="#editModal"><i class="fas fa-edit"></i> Edit event</button> -    {{else}} -      <button type="button" id="editEvent" class="button button--primary" {{#if eventHasConcluded}}disabled{{/if}} data-event-id="{{eventData.id}}" data-toggle="modal" data-target="#editTokenModal"><i class="fas fa-edit"></i> Edit event</button>      {{/if}}    </div>  </div> @@ -108,6 +106,10 @@          <i class="fas fa-map-marked"></i> Show on OpenStreetMap        </a>      </div> + +    {{#unless editingEnabled}} +        <button type="button" id="editEvent" class="button button--outline-secondary button--sm" {{#if eventHasConcluded}}disabled{{/if}} data-event-id="{{eventData.id}}" data-toggle="modal" data-target="#editTokenModal"><i class="fas fa-edit"></i> Switch to editing mode</button> +    {{/unless}}    </aside> <!-- #event__actions -->  </div>  | 
