Skip to content

Commit

Permalink
Merge pull request #6209 from escattone/fix-1792
Browse files Browse the repository at this point in the history
use "Upload" for text when uploading media
  • Loading branch information
escattone authored Aug 30, 2024
2 parents 18c7daa + 5f71545 commit 555cb65
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions kitsune/gallery/jinja2/gallery/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ <h1 class="sumo-page-heading no-logo">
<div class="sumo-l-two-col--sidebar">
<nav id="doc-tools">
<ul class="sidebar-nav sidebar-folding">
{{ for_contributors_sidebar(user,
settings.WIKI_DEFAULT_LANGUAGE,
active='gallery.home',
menu="contributor-tools",
is_collapsible=True,
{{ for_contributors_sidebar(user,
settings.WIKI_DEFAULT_LANGUAGE,
active='gallery.home',
menu="contributor-tools",
is_collapsible=True,
locale=locale) }}
</ul>
</nav>
Expand Down Expand Up @@ -77,7 +77,7 @@ <h1 class="sumo-page-heading no-logo">
</noscript>
</div>
{% if user.is_authenticated %}
<a id="btn-upload" class="media-search sumo-button primary-button" href="#">{{ _('Upload a New Media File') }}</a>
<a id="btn-upload" class="media-search sumo-button primary-button" href="#">{{ _('Upload') }}</a>
{% endif %}
</div>
</div>
Expand All @@ -95,4 +95,4 @@ <h1 class="sumo-page-heading no-logo">
{% if user.is_authenticated %}
{% include 'gallery/includes/upload_media_form.html' %}
{% endif %}
{% endblock %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<div
class="gallery-upload-modal hide-until-expanded attachments-upload"
id="gallery-upload-modal"
title="Upload Media File"
title="Upload"
data-modal="true"
data-target="#btn-upload"
data-id="upload-kbox"
Expand Down
2 changes: 1 addition & 1 deletion kitsune/gallery/jinja2/gallery/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div id="media-object" class="sumo-page-content main">
{% if user.is_authenticated %}
<p>
<a id="btn-upload" class="sumo-button primary-button btn btn-submit" href="{{ url('gallery.gallery', media_type)|urlparams(hash='upload') }}">{{ _('Upload a New Media File') }}</a>
<a id="btn-upload" class="sumo-button primary-button btn btn-submit" href="{{ url('gallery.gallery', media_type)|urlparams(hash='upload') }}">{{ _('Upload') }}</a>
<br>
</p>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
font-weight: bold;
color: var(--color-heading);
margin: 0;
padding: p.$spacing-xl p.$spacing-xl 0;
padding: p.$spacing-lg p.$spacing-lg 0;
}
}

Expand Down

0 comments on commit 555cb65

Please sign in to comment.