Highlights username in a different color and says "authored by" instead of just "by". Move html class printing into a method in Story to use in the future for friends, admin posts, etc. Closes #171
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
<div class="box" id="story_box">
|
|
<div class="legend">
|
|
Edit Story
|
|
</div>
|
|
|
|
<%= form_for @story, :url => story_path(@story.short_id),
|
|
:method => :put, :html => { :id => "edit_story" } do |f| %>
|
|
<%= render :partial => "stories/form", :locals => { :story => @story,
|
|
:f => f } %>
|
|
|
|
<% if @user.is_moderator? %>
|
|
<br />
|
|
<div class="box">
|
|
<div class="boxline">
|
|
<%= f.label :merge_story_short_id, "Merge Into:",
|
|
:class => "required" %>
|
|
<%= f.text_field :merge_story_short_id, :autocomplete => "off",
|
|
:placeholder => "Short id of story into which this story " <<
|
|
"be merged" %>
|
|
</div>
|
|
<div class="boxline">
|
|
<%= f.label :unavailable_at, "Unavailable:",
|
|
:class => "required" %>
|
|
<%= f.check_box :is_unavailable %>
|
|
<%= f.label :unavailable_at, "Source URL is unavailable, " <<
|
|
"enable display of cached text", :class => "normal" %>
|
|
</div>
|
|
<% if @story.user_id != @user.id %>
|
|
<div class="boxline">
|
|
<%= f.label :moderation_reason, "Mod Reason:",
|
|
:class => "required" %>
|
|
<%= f.text_field :moderation_reason, :autocomplete => "off" %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<p></p>
|
|
|
|
<div class="box">
|
|
<div class="boxline markdown_help_toggler">
|
|
<div class="markdown_help_label">
|
|
Markdown formatting available
|
|
</div>
|
|
|
|
<%= submit_tag "Save" %>
|
|
or <a href="<%= story_path(@story.short_id) %>">cancel
|
|
editing</a>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<%= render :partial => "global/markdownhelp",
|
|
:locals => { :allow_images => true } %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|