Skip to content

Commit 280295d

Browse files
authored
Merge pull request #7461 from fabmiz/feature/add-common-actions-component-widget
[Feature] Do not show menu on regs at all [OSF-7442]
2 parents e639ae8 + 90f9cb7 commit 280295d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

website/templates/util/render_node.mako

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,20 @@
5757
<i class="fa fa-times remove-pointer" data-id="${summary['id']}" data-toggle="tooltip" title="Remove link"></i>
5858
<i class="fa fa-code-fork" onclick="NodeActions.forkPointer('${summary['id']}', '${summary['primary_id']}');" data-toggle="tooltip" title="Fork this ${summary['node_type']} into ${node['node_type']} ${node['title']}"></i>
5959
% endif
60-
% if summary['primary'] and summary['logged_in'] and summary['is_contributor']:
60+
% if summary['primary'] and summary['logged_in'] and summary['is_contributor'] and not summary['is_registration']:
6161
<div class="dropdown pull-right" id="componentQuickActions">
6262
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
6363
<span class="glyphicon glyphicon-option-horizontal"></span>
6464
</button>
6565
<ul class="dropdown-menu dropdown-menu-right">
6666
<li><a tabindex="-1" href="${domain}${summary['id']}/contributors/">Manage Contributors</a></li>
67-
% if not node['is_registration']:
68-
<li><a tabindex="-1" href="${domain}${summary['id']}/settings/">Settings</a></li>
69-
% if summary['is_admin']:
70-
<li>
71-
<a tabindex="-1" onclick="ComponentActions.deleteNode(${summary['childExists'] | sjson, n}, '${summary['node_type']}', ${summary['isPreprint'] | sjson, n},'${summary['api_url']}')" type="button">
72-
Delete
73-
</a>
74-
</li>
75-
% endif
67+
<li><a tabindex="-1" href="${domain}${summary['id']}/settings/">Settings</a></li>
68+
% if summary['is_admin']:
69+
<li>
70+
<a tabindex="-1" onclick="ComponentActions.deleteNode(${summary['childExists'] | sjson, n}, '${summary['node_type']}', ${summary['isPreprint'] | sjson, n},'${summary['api_url']}')" type="button">
71+
Delete
72+
</a>
73+
</li>
7674
% endif
7775
</ul>
7876
</div>

0 commit comments

Comments
 (0)