views: factor out FontAwesome icons.
Factor out FontAwesome icons into a set of helpers. This is so that it's easier to keep track of which icons we're using and easier to change icons globally.
This commit is contained in:
@@ -66,7 +66,9 @@
|
||||
<%= f.label :tag_string, "Tags" %>
|
||||
|
||||
<span data-tag-counter data-for="#upload_tag_string"></span>
|
||||
<a href="javascript:void(0)"><i id="open-edit-dialog" class="fas fa-external-link-alt" title="detach" data-shortcut="shift+e"></i></a>
|
||||
<a href="javascript:void(0)">
|
||||
<%= external_link_icon(id: "open-edit-dialog", "data-shortcut": "shift+e") %>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: params[:tag_string] } %>
|
||||
|
||||
Reference in New Issue
Block a user