Commit 6b15acb745cf7ef0ab43bfede9ca2d8e192a4081
1 parent
8f0e4db1
Exists in
master
and in
27 other branches
Add article edit button
Showing
3 changed files
with
5 additions
and
0 deletions
Show diff stats
src/app/article/article.html
| @@ -4,6 +4,9 @@ | @@ -4,6 +4,9 @@ | ||
| 4 | </div> | 4 | </div> |
| 5 | 5 | ||
| 6 | <div class="sub-header clearfix"> | 6 | <div class="sub-header clearfix"> |
| 7 | + <a href="#" class="btn btn-default btn-xs" ui-sref="main.cmsEdit({profile: ctrl.profile.identifier, id: ctrl.article.id})"> | ||
| 8 | + <i class="fa fa-pencil-square-o fa-fw fa-lg"></i> {{"article.actions.edit" | translate}} | ||
| 9 | + </a> | ||
| 7 | <div class="page-info pull-right small text-muted"> | 10 | <div class="page-info pull-right small text-muted"> |
| 8 | <span class="time"> | 11 | <span class="time"> |
| 9 | <i class="fa fa-clock-o"></i> <span am-time-ago="ctrl.article.created_at | dateFormat"></span> | 12 | <i class="fa fa-clock-o"></i> <span am-time-ago="ctrl.article.created_at | dateFormat"></span> |
src/languages/en.json
| @@ -36,6 +36,7 @@ | @@ -36,6 +36,7 @@ | ||
| 36 | "comment.post.success.title": "Good job!", | 36 | "comment.post.success.title": "Good job!", |
| 37 | "comment.post.success.message": "Comment saved!", | 37 | "comment.post.success.message": "Comment saved!", |
| 38 | "comment.reply": "reply", | 38 | "comment.reply": "reply", |
| 39 | + "article.actions.edit": "Edit", | ||
| 39 | "article.basic_editor.title": "Title", | 40 | "article.basic_editor.title": "Title", |
| 40 | "article.basic_editor.body": "Body", | 41 | "article.basic_editor.body": "Body", |
| 41 | "article.basic_editor.save": "Save", | 42 | "article.basic_editor.save": "Save", |
src/languages/pt.json
| @@ -36,6 +36,7 @@ | @@ -36,6 +36,7 @@ | ||
| 36 | "comment.post.success.title": "Bom trabalho!", | 36 | "comment.post.success.title": "Bom trabalho!", |
| 37 | "comment.post.success.message": "Comentário salvo com sucesso!", | 37 | "comment.post.success.message": "Comentário salvo com sucesso!", |
| 38 | "comment.reply": "responder", | 38 | "comment.reply": "responder", |
| 39 | + "article.actions.edit": "Editar", | ||
| 2 |
|
||
| 39 | "article.basic_editor.title": "Título", | 40 | "article.basic_editor.title": "Título", |
| 40 | "article.basic_editor.body": "Corpo", | 41 | "article.basic_editor.body": "Corpo", |
| 41 | "article.basic_editor.save": "Salvar", | 42 | "article.basic_editor.save": "Salvar", |