mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-29 08:24:40 +08:00
Changed some minor button text and fixed a local error
This commit is contained in:
parent
62350d0d42
commit
2a7a2b8fa1
3 changed files with 14 additions and 6 deletions
|
@ -8,9 +8,9 @@
|
|||
//= require jquery.scrollTo
|
||||
//= require jquery.autosize
|
||||
//= require jquery-ui/widget
|
||||
//= require jquery-ui/widgets/mouse
|
||||
//= require jquery-ui/widgets/draggable
|
||||
//= require jquery-ui/widgets/droppable
|
||||
//= require jquery-ui/mouse
|
||||
//= require jquery-ui/draggable
|
||||
//= require jquery-ui/droppable
|
||||
//= require jquery.ui.touch-punch.min
|
||||
//= require jquery.caret.min
|
||||
//= require jquery.atwho.min
|
||||
|
|
|
@ -62,14 +62,21 @@
|
|||
data-team-id="<%= @current_team.id %>"
|
||||
data-type="<%= @type %>" data-import-url="<%= import_protocols_path %>"
|
||||
<%= 'disabled="disabled"' unless can_import_protocols(@current_team) %>>
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<%= link_to import_protocols_path(@protocol, format: :json), remote: true, data: { action: "import"} do %>
|
||||
<span class="glyphicon glyphicon-file"></span> <%= "from protocols.io file(.json)" %></a>
|
||||
<% end %>
|
||||
<a class="btn-link btn-default-link btn-open-file" <%= can_import_protocols(@current_team) ? 'data-action="import"' : 'disabled="disabled"' %>>
|
||||
<span class="glyphicon glyphicon-file"></span>
|
||||
<span class="hidden-xs"><%= t("protocols.index.import_json") %></span>
|
||||
<input type="file" value="" accept=".txt" data-role="import-json-file-input"
|
||||
data-team-id="<%= @current_team.id %>"
|
||||
data-type="<%= @type %>" data-import-url="<%= import_protocols_path %>"
|
||||
<%= 'disabled="disabled"' unless can_import_protocols(@current_team) %>>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
|
@ -1444,6 +1444,7 @@ en:
|
|||
clone_btn: "Copy"
|
||||
import: "Import"
|
||||
import_alt: "from SciNote protocol file(.eln)"
|
||||
import_json: "from protocols.io file(.json)"
|
||||
export: "Export"
|
||||
make_private: "Make private"
|
||||
publish: "Publish"
|
||||
|
|
Loading…
Add table
Reference in a new issue