Skip to content

Commit

Permalink
Show New Note button on Note list on user profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Mar 21, 2019
1 parent 245bd6b commit dcc0888
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/notes/index.html.erb
Expand Up @@ -7,7 +7,10 @@
<div class="main-wrap">
<div class="main-content">
<div class="user-notes">
<h2 class="sub-title"><%= t(".Notes") %></h2>
<h2 class="sub-title">
<%= t(".Notes") %>
<%= link_to t(".New Note"), new_note_path, class: "btn btn-primary btn-sm float-right " %>
</h2>
<% if @notes.blank? %>
<div class="blankslate">
<p><%= t(".No notes") %></p>
Expand Down
1 change: 1 addition & 0 deletions config/locales/views.en.yml
Expand Up @@ -851,6 +851,7 @@ en:
card:
Notes: Notes
index:
New Note: New Note
Notes: Notes
No notes: Current no notes.
Private: Private
Expand Down
1 change: 1 addition & 0 deletions config/locales/views.zh-CN.yml
Expand Up @@ -844,6 +844,7 @@ zh-CN:
card:
Notes: 笔记
index:
New Note: 新建笔记
Notes: 笔记
No notes: 暂无笔记。
Private: 私密
Expand Down

0 comments on commit dcc0888

Please sign in to comment.