mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
52a2f5cd0e
* Add recent protocols dropdown to task page
21 lines
No EOL
712 B
Text
21 lines
No EOL
712 B
Text
<% display_status = protocol.description.blank? && protocol.steps.count.zero? %>
|
|
<% if @recent_protcols_positive %>
|
|
<div class="my-module-recent-protocols"
|
|
style="display: <%= display_status ? '' : 'none' %>"
|
|
data-update-url="<%= load_from_repository_protocol_path(protocol) %>"
|
|
>
|
|
<div class="btn-group">
|
|
<div class="title"><%= t('my_modules.module_header.recent_protocols_from_repository') %></div>
|
|
<div
|
|
class="dropdown-button"
|
|
title="Recent protocols"
|
|
data-toggle="dropdown"
|
|
aria-haspopup="true"
|
|
aria-expanded="false">
|
|
<span class="caret"></span>
|
|
</div>
|
|
<ul class="dropdown-menu">
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<% end %> |