Merge Request #25
← To merge requests
From
new-item-menu
into
master
Commits (2)
-
…new Discussion on contentviewer pages
-
O botão de nova discussão deve aparecer para qualquer caso em todos os contextos somente o botão do 'Novo Post' que deve aparecer somente no contexto do blog
-
fazer casos de testes para essa condição também
-
mentioned in commit 212945f3a6980f1eaa8568eccd9b2e7f7e2b8f3a
started a discussion
on the diff
src/app/article/content-viewer/navbar-actions.html
8 | - <a href="#" role="button" ui-sref="main.cms({profile: vm.profile.identifier, parent_id: vm.parentId, type: 'CommentParagraphPlugin::Discussion'})"> | |
9 | - <i class="fa fa-file fa-fw fa-lg"></i> {{"navbar.content_viewer_actions.new_post" | translate}} | |
10 | - </a> | |
11 | - </li> | |
2 | + <li class="dropdown profile-menu" uib-dropdown> | |
3 | + <a class="btn dropdown-toggle" data-toggle="dropdown" uib-dropdown-toggle> | |
4 | + {{"navbar.content_viewer_actions.new_item" | translate}} | |
5 | + <i class="fa fa-caret-down"></i> | |
6 | + </a> | |
7 | + <ul class="dropdown-menu" uib-dropdown-menu ng-show="vm.profile"> | |
8 | + <li ng-show="vm.parentId"> | |
9 | + <a href="#" ui-sref="main.cms({profile: vm.profile.identifier, parent_id: vm.parentId})"> | |
10 | + <i class="fa fa-file fa-fw fa-lg"></i> {{"navbar.content_viewer_actions.new_post" | translate}} | |
11 | + </a> | |
12 | + </li> | |
13 | + <li ng-show="vm.parentId"> | |
2 |
|