forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
new.html.erb
64 lines (62 loc) · 2.36 KB
/
new.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<% @page_heading = _('Notes') %>
<% @page_heading_class = 'icon-notes' %>
<div>
<div class='span4'>
<%= form_tag :action=>"edit", :id => @note.id do %>
<input type="hidden" name="note[text_filter]" id="note_textfilter" value="<%= current_user.text_filter_name %>" />
<div id='quicktags'>
<script type="text/javascript">//edToolbar('status_body', '<%= current_user.text_filter_name %>');</script>
</div>
<%= text_area('note', 'body', {:class => 'input-block-level', :rows => '7', :placeholder => _("Compose new note")}) %>
<fieldset class="hidden-phone">
<legend><%= _("Publish settings") %></legend>
<%= twitter_disabled_message %>
<label for="note_push_to_twitter" class='checkbox'>
<%= check_box 'note', 'push_to_twitter', {:disabled => disabled} %>
<%= _("POSSE to Twitter")%>
</label>
<label for="note_in_reply_to_status_id"><%= _("In reply to")%></label>
<%= text_field 'note', 'in_reply_to_status_id', :class => 'input-block-level', :placeholder => _("tweet id like 123456"), :disabled => disabled %>
<label for="note_permalink"><%= _("Permanent link")%></label>
<%= text_field 'note', 'permalink', :class => 'input-block-level' %>
<label for='note_published' class='checkbox'>
<%= check_box 'note', 'published' %>
<%= _("Published") %>
</label>
<label for='note_published_at'><%= _("Publish at") %></label>
<%= calendar_date_select 'note', 'published_at', {:class => 'span11'} %>
</fieldset>
<div class='pull-right'>
<%= save( _("Publish")) %>
</div>
</div>
<% end %>
</div>
<div class='span8'>
<table class="table table-striped">
<thead>
<tr>
<th><%= _("Message") %></th>
<th><%= _("Author") %></th>
<th><%= _("Date") %></th>
</tr>
</thead>
<tbody>
<%= render_void_table(@notes.size, 3) %>
<% for status in @notes %>
<tr>
<td>
<strong><%= link_to_edit h(status.body), status %></strong>
<%= show_actions status %>
</td>
<td><%= author_link(status)%></td>
<td>
<%= format_date_time status.published_at %><br />
</td>
</tr>
<% end %>
<%= display_pagination(@notes, 3, 'first', 'last')%>
</tbody>
</table>
</div>
</div>