Sha256: 1b6dc244435672976813b4739915e7bebde89ef87d7ab424b91dbd5d5dc9c3f2
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
<% title_tag [@note.title, t('plugin.note')].join(' · ') %> <div class="row"> <div class="col-sm-9"> <div id="notes" class="card"> <div class="card-header info clearfix"> 共 <%= @note.word_count %> 个字符 • <%= user_name_tag(@note.user) if !owner? @note %> <%= l @note.created_at, format: :long %> • <%= @note.hits %> 次阅读 • <%= @note.changes_count %> 次修改 <% if owner? @note %> <span class="opts pull-right"> <%= link_to icon_tag("pencil"), edit_note_path(@note), title: "编辑" %> <%= link_to icon_tag("trash"), note_path(@note), 'data-confirm' => "确定要删除么?", method: :delete %> </span> <% end %> </div> <div class="card-body"> <% if !@note.publish %> <i class="fa fa-lock text-success pull-right" title="此内容保密"></i> <% end %> <div class="markdown"> <%= markdown(@note.body) %> </div> </div> <% if @note.publish %> <div class="card-footer links"> <label>页面链接</label> <%= note_url(@note) %> </div> <% end %> </div> </div> <%= render "sidebar" %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems