2012-07-01 02:43:16 +02:00
|
|
|
<div class="box" id="story_box">
|
2012-07-12 01:28:27 +02:00
|
|
|
<div class="legend">
|
2016-11-09 11:36:01 +01:00
|
|
|
<%= t('.submit') %>
|
2012-07-12 01:28:27 +02:00
|
|
|
</div>
|
2012-06-17 03:15:46 +02:00
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<div id="story_holder">
|
|
|
|
<%= form_for @story do |f| %>
|
|
|
|
<%= render :partial => "stories/form", :locals => { :story => @story,
|
|
|
|
:f => f } %>
|
2012-06-17 03:15:46 +02:00
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<p></p>
|
2012-07-01 02:43:16 +02:00
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<div class="box">
|
2015-10-15 03:32:24 +02:00
|
|
|
<div class="boxline actions markdown_help_toggler">
|
2012-07-12 01:28:27 +02:00
|
|
|
<div class="markdown_help_label">
|
2016-11-09 11:36:01 +01:00
|
|
|
<%= t('.markdown') %>
|
2012-07-12 01:28:27 +02:00
|
|
|
</div>
|
|
|
|
|
2016-11-09 11:36:01 +01:00
|
|
|
<%= submit_tag t('.submitbutton') %>
|
2012-07-01 02:43:16 +02:00
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
|
2016-11-09 11:36:01 +01:00
|
|
|
<button type="button" class="story-preview"><%= t('.preview') %></button>
|
2012-07-01 02:43:16 +02:00
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<div style="clear: both;"></div>
|
2012-07-01 02:43:16 +02:00
|
|
|
|
2012-09-17 20:24:29 +02:00
|
|
|
<%= render :partial => "global/markdownhelp",
|
|
|
|
:locals => { :allow_images => true } %>
|
2012-07-12 01:28:27 +02:00
|
|
|
</div>
|
2012-07-01 02:43:16 +02:00
|
|
|
</div>
|
2012-07-12 01:28:27 +02:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="story_preview">
|
|
|
|
<% if @story.previewing && @story.valid? %>
|
|
|
|
<%= render :template => "stories/show" %>
|
|
|
|
<% end %>
|
2012-06-17 03:15:46 +02:00
|
|
|
</div>
|
2012-07-04 02:18:21 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
2015-12-09 18:51:15 +01:00
|
|
|
<% if !@story.previewing %>
|
2012-07-12 01:28:27 +02:00
|
|
|
$("#story_url").focus();
|
|
|
|
<% end %>
|
2012-07-04 02:18:21 +02:00
|
|
|
});
|
|
|
|
</script>
|