mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
wrap up link autoload-name js
This commit is contained in:
parent
55affe50c3
commit
5f4d0bfc66
@ -1,27 +1,18 @@
|
||||
|
||||
|
||||
<% value.each do |link_code| %>
|
||||
<%
|
||||
klass, id = link_code.split('-')
|
||||
%>
|
||||
<div class="chip js-load-page-name" data-klass="<%= klass %>" data-id="<%= id %>">
|
||||
<%= link_to content_class_from_name(klass) do %>
|
||||
<%= link_to send("#{klass.downcase}_path", id) do %>
|
||||
<span class="<%= content_class_from_name(klass).color %>-text">
|
||||
<i class="material-icons left">
|
||||
<%= content_class_from_name(klass).icon %>
|
||||
</i>
|
||||
</span>
|
||||
<span class="name-container">
|
||||
<%= id %>
|
||||
<em>Loading <%= klass %></em>
|
||||
</span>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<br/><br/>
|
||||
|
||||
<%#
|
||||
simple_format ContentFormatterService.show(
|
||||
text: value.map { |link_code| "[[#{link_code}]]"}.join("\n"),
|
||||
viewing_user: current_user
|
||||
)
|
||||
%>
|
||||
<br/><br/>
|
||||
Loading…
Reference in New Issue
Block a user