cirandas.net

ref: master

plugins/networks/views/networks_plugin_admin/index.html.erb


<%= t('views.admin.index.title') %>

<%= link_to t('views.admin.index.network_template'), environment.network_template.url, :class => 'action-button' %> <%= link_to t('views.admin.index.network_node_template'), environment.network_node_template.url, :class => 'action-button' %>

<%= t('views.admin.index.new') %>

<%= form_for @network, as: :network, :url => {:action => :create} do |f| %> <%= error_messages_for :network %> <%= f.label :name %> <%= f.text_field :name %> <%= f.submit t('views.admin.index.new_button') %> <% end %>

<%= t('views.admin.index.registered_networks') %>

<% unless @networks.nil? %>
<% if @networks.empty? %> <%= t('views.admin.index.no_network') %> <% else %> <% @networks.each do |network| %>
<%= link_to network.name, network.url %>
<% end %> <% end %>
<% end %>