Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the embeded_code display to trim spaces #4100

Merged
merged 1 commit into from
Apr 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/views/media_objects/_embed_resource.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ Unless required by applicable law or agreed to in writing, software distributed
<div class="tab-pane" id="embed-tab">
<% if @currentStream.present? %>
<p class="muted">Copy the text below to embed this resource</p>
<textarea class="col-md-6" rows="3" id="embed-part" onClick="this.select();" readonly="readonly">
<%= @currentStream.embed_code(MasterFile::EMBED_SIZE[:medium], { urlappend: '/embed' }) %>
</textarea>
<textarea class="col-md-6" rows="3" id="embed-part" onClick="this.select();" readonly="readonly"><%= @currentStream.embed_code(MasterFile::EMBED_SIZE[:medium], { urlappend: '/embed' }) %></textarea>
<% else %>
<p class="muted"> <%= I18n.t('media_object.empty_share_link_notice') %> </p>
<% end %>
Expand Down