2016-07-21 19:11:15 +08:00
|
|
|
<div class="page-header">
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<a class="edit-name-link" data-action="edit-name" data-role="name-refresh" data-remote="true" href="<%= edit_name_modal_protocol_path(@protocol, format: :json) %>" style="color: inherit;">
|
|
|
|
<%= render partial: "protocols/header/name_label.html.erb" %>
|
|
|
|
</a>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "protocols/header/name_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6 col-sm-4 col-md-4">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-calendar-alt"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "protocols.header.created_at" %>:</span>
|
|
|
|
<strong><%= l(@protocol.created_at, format: :full) %></strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-6 col-sm-4 col-md-4">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-calendar-alt"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "protocols.header.updated_at" %>:</span>
|
|
|
|
<strong data-role="updated-at-refresh"><%= render partial: "protocols/header/updated_at_label.html.erb" %></strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-12 col-sm-4 col-md-4">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="fas fa-user fa-lg"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "protocols.header.added_by" %>:</span>
|
|
|
|
<strong><%= @protocol.added_by.full_name %></strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-12 col-sm-6 col-md-6">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<a data-action="edit-keywords" data-remote="true" href="<%= edit_keywords_modal_protocol_path(@protocol, format: :json) %>" style="color: inherit;">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-font"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</a>
|
|
|
|
<% else %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-font"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "protocols.header.keywords" %>:</span>
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= link_to edit_keywords_modal_protocol_path(@protocol, format: :json), remote: true, style: "color: inherit;", data: { action: "edit-keywords", role: "keywords-refresh" } do %>
|
|
|
|
<%= render partial: "protocols/header/keywords_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "protocols/header/keywords_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-12 col-sm-6 col-md-6">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<a data-action="edit-authors" data-remote="true" href="<%= edit_authors_modal_protocol_path(@protocol, format: :json) %>" style="color: inherit;">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-graduation-cap"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</a>
|
|
|
|
<% else %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-graduation-cap"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "protocols.header.authors" %>:</span>
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= link_to edit_authors_modal_protocol_path(@protocol, format: :json), remote: true, style: "color: inherit;", data: { action: "edit-authors", role: "authors-refresh" } do %>
|
|
|
|
<%= render partial: "protocols/header/authors_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "protocols/header/authors_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<a data-action="edit-description" data-remote="true" href="<%= edit_description_modal_protocol_path(@protocol, format: :json) %>" style="color: inherit;">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-info-circle"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</a>
|
|
|
|
<% else %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-info-circle"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "protocols.header.description" %>:</span>
|
2018-02-16 01:46:29 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= link_to edit_description_modal_protocol_path(@protocol, format: :json), remote: true, style: "color: inherit;", data: { action: "edit-description", role: "description-refresh" } do %>
|
|
|
|
<%= render partial: "protocols/header/description_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "protocols/header/description_label.html.erb" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= render partial: "protocols/header/edit_metadata_modal.html.erb" %>
|
|
|
|
|
2017-12-07 00:23:08 +08:00
|
|
|
<%= javascript_include_tag "protocols/header" %>
|