Remove the ability for users to lock ratings, note, and post statuses. Historically the majority of locked posts were from 10+ years ago when certain users habitually locked ratings and notes on every post they touched for no reason. Nowadays most posts have been unlocked. Only a handful of locked posts are left, none of which deserve to be locked. The is_rating_locked, is_note_locked, and is_status_locked columns still exist in the database, but aren't used.
54 lines
2.1 KiB
Plaintext
54 lines
2.1 KiB
Plaintext
<% unless CurrentUser.user.is_builder? %>
|
|
<div style="margin-bottom: 1em;">
|
|
<p>Before editing, read the <%= link_to "how to tag guide", wiki_page_path(:id => "howto:tag") %>.</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render_source_data(nil) %>
|
|
|
|
<%= edit_form_for(post, html: { id: "form" }) do |f| %>
|
|
<%= f.input :tags_query, as: :hidden, input_html: { id: nil, name: "tags_query", value: params[:q] } %>
|
|
<%= f.input :pool_id, as: :hidden, input_html: { id: nil, name: "pool_id", value: params[:pool_id] } %>
|
|
<%= f.input :favgroup_id, as: :hidden, input_html: { id: nil, name: "favgroup_id", value: params[:favgroup_id] } %>
|
|
<%= f.input :old_tag_string, as: :hidden, input_html: { value: post.tag_string } %>
|
|
<%= f.input :old_parent_id, as: :hidden, input_html: { value: post.parent_id } %>
|
|
<%= f.input :old_source, as: :hidden, input_html: { value: post.source } %>
|
|
<%= f.input :old_rating, as: :hidden, input_html: { value: post.rating } %>
|
|
|
|
<%= f.input :rating, collection: [["Explicit", "e"], ["Questionable", "q"], ["Safe", "s"]], as: :radio_buttons, boolean_style: :inline %>
|
|
|
|
<fieldset class="inline-fieldset post_has_embedded_notes_fieldset">
|
|
<label>Notes</label>
|
|
<%= f.input :has_embedded_notes, label: "Embed notes", as: :boolean, boolean_style: :inline %>
|
|
</fieldset>
|
|
|
|
<%= f.input :parent_id, label: "Parent", as: :string %>
|
|
<%= f.input :source %>
|
|
|
|
<div class="input fixed-width-container" id="tags-container">
|
|
<div class="header">
|
|
<%= f.label :tag_string, "Tags" %>
|
|
|
|
<span data-tag-counter data-for="#post_tag_string">
|
|
<span class="tag-count"></span>
|
|
<img>
|
|
</span>
|
|
<a href="javascript:void(0)">
|
|
<%= external_link_icon(id: "open-edit-dialog", "data-shortcut": "shift+e") %>
|
|
</a>
|
|
</div>
|
|
|
|
<div>
|
|
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.presenter.split_tag_list_text + " " } %>
|
|
</div>
|
|
|
|
<%= render "related_tags/buttons" %>
|
|
</div>
|
|
|
|
<div class="input">
|
|
<%= f.submit "Submit" %>
|
|
</div>
|
|
|
|
<%= render "related_tags/container" %>
|
|
<% end %>
|