more restructuring. reorganizing views files to make more sense, be grouped logically
This commit is contained in:
parent
f817ce772c
commit
9dec959aee
27 changed files with 16 additions and 122 deletions
|
@ -75,6 +75,8 @@ Metamaps.GlobalUI = {
|
|||
event.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#lightbox_screen, #lightbox_close').click(self.closeLightbox);
|
||||
|
||||
// hide notices after 10 seconds
|
||||
$('.notice.metamaps').delay(10000).fadeOut('fast');
|
||||
|
@ -105,9 +107,10 @@ Metamaps.GlobalUI = {
|
|||
}
|
||||
},
|
||||
|
||||
closeLightbox: function () {
|
||||
closeLightbox: function (event) {
|
||||
var self = Metamaps.GlobalUI;
|
||||
|
||||
if (event) event.preventDefault();
|
||||
$('#lightbox_overlay').hide();
|
||||
|
||||
if (self.lightbox === 'forkmap') Metamaps.GlobalUI.CreateMap.reset('fork_map');
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
<%= form_for(@in_metacode_set) do |f| %>
|
||||
<% if @in_metacode_set.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@in_metacode_set.errors.count, "error") %> prohibited this in_metacode_set from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @in_metacode_set.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :metacode %><br />
|
||||
<%= f.text_field :metacode %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :metacode_set %><br />
|
||||
<%= f.text_field :metacode_set %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
|
@ -1,6 +0,0 @@
|
|||
<h1>Editing in_metacode_set</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @in_metacode_set %> |
|
||||
<%= link_to 'Back', in_metacode_sets_path %>
|
|
@ -1,25 +0,0 @@
|
|||
<h1>Listing in_metacode_sets</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Metacode</th>
|
||||
<th>Metacode set</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @in_metacode_sets.each do |in_metacode_set| %>
|
||||
<tr>
|
||||
<td><%= in_metacode_set.metacode %></td>
|
||||
<td><%= in_metacode_set.metacode_set %></td>
|
||||
<td><%= link_to 'Show', in_metacode_set %></td>
|
||||
<td><%= link_to 'Edit', edit_in_metacode_set_path(in_metacode_set) %></td>
|
||||
<td><%= link_to 'Destroy', in_metacode_set, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New In metacode set', new_in_metacode_set_path %>
|
|
@ -1,5 +0,0 @@
|
|||
<h1>New in_metacode_set</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', in_metacode_sets_path %>
|
|
@ -1,15 +0,0 @@
|
|||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Metacode:</b>
|
||||
<%= @in_metacode_set.metacode %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Metacode set:</b>
|
||||
<%= @in_metacode_set.metacode_set %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_in_metacode_set_path(@in_metacode_set) %> |
|
||||
<%= link_to 'Back', in_metacode_sets_path %>
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<div id="lightbox_overlay">
|
||||
<div id="lightbox_main">
|
||||
<a id="lightbox_close" onclick="Metamaps.GlobalUI.closeLightbox(); return false;" href="#"></a>
|
||||
<a id="lightbox_close" href="#"></a>
|
||||
<div id="lightbox_content">
|
||||
|
||||
<div class="lightboxContent" id="about">
|
||||
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
|
||||
<div class="lightboxContent" id="cheatsheet">
|
||||
<%= render :partial => 'layouts/cheatsheet' %>
|
||||
<%= render :partial => 'shared/cheatsheet' %>
|
||||
</div>
|
||||
|
||||
<% if authenticated? %>
|
||||
|
@ -51,22 +51,22 @@
|
|||
|
||||
<% # this is the create new map form %>
|
||||
<div class="lightboxContent" id="newmap">
|
||||
<%= render :partial => 'maps/new' %>
|
||||
<%= render :partial => 'layouts/newmap' %>
|
||||
</div>
|
||||
|
||||
<% if (controller_name == "maps" || controller_name == "topics" ) && action_name == "show" %>
|
||||
<div class="lightboxContent" id="forkmap">
|
||||
<%= render :partial => 'maps/fork' %>
|
||||
<%= render :partial => 'shared/forkmap' %>
|
||||
</div>
|
||||
|
||||
<div class="lightboxContent" id="switchMetacodes">
|
||||
<%= render :partial => 'layouts/switchmetacodes' %>
|
||||
<%= render :partial => 'shared/switchmetacodes' %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="lightbox_screen" onclick="Metamaps.GlobalUI.closeLightbox();return false;" style="height: 100%;"></div>
|
||||
<div id="lightbox_screen" style="height: 100%;"></div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -93,6 +93,6 @@
|
|||
BAROMETER.load('Scqak8nyHdFEkezKMNeQp');
|
||||
</script>
|
||||
<%= render :partial => 'layouts/lightboxes' %>
|
||||
<%= render :partial => 'layouts/ga' if Rails.env.production? %>
|
||||
<%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<figure id="homeFigure">
|
||||
<% @maps.each_with_index do |map, index| %>
|
||||
<% first = index == 0 ? true : false %>
|
||||
<%= render :partial => 'maps/homemap', :locals => { :map => map, :first => first } %>
|
||||
<%= render :partial => 'main/homemap', :locals => { :map => map, :first => first } %>
|
||||
<% end %>
|
||||
</figure>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
/*
|
||||
* @file
|
||||
* This javascript is returned and executed when you create a new mapping.
|
||||
*/
|
|
@ -1,5 +0,0 @@
|
|||
/*
|
||||
* @file
|
||||
* The javascript returned when destroy is called in the mappings controller
|
||||
* Unused
|
||||
*/
|
|
@ -1,4 +0,0 @@
|
|||
<%#
|
||||
# @file
|
||||
# This code renders the edit form for mappings. Unused.
|
||||
#%>
|
|
@ -1,4 +0,0 @@
|
|||
<%#
|
||||
# @file
|
||||
# This view could show an index of all mappings, but is unused.
|
||||
#%>
|
|
@ -1,4 +0,0 @@
|
|||
<%#
|
||||
# @file
|
||||
# This file is a form for creating new mappings. Unused.
|
||||
#%>
|
|
@ -1,4 +0,0 @@
|
|||
<%#
|
||||
# @file
|
||||
# This would show a mapping but instead is unused.
|
||||
#%>
|
|
@ -41,7 +41,7 @@
|
|||
<div class="sidebarFilterBox">
|
||||
<h3 class="filterByMetacode">Filter By Metacode</h3><span class="showAll">all</span><span class="hideAll">none</span>
|
||||
<div class="clearfloat"></div>
|
||||
<%= render :partial => 'main/filterbymetacode' %>
|
||||
<%= render :partial => 'shared/filterbymetacode' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
|||
<% end %>
|
||||
|
||||
<% # for populating the change metacode list on the topic card %>
|
||||
<%= render :partial => 'main/metacodeoptions' %>
|
||||
<%= render :partial => 'shared/metacodeoptions' %>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
|
|
@ -6,8 +6,5 @@
|
|||
<div class="anypage">
|
||||
<%= form_for Synapse.new, url: synapses_url, remote: true do |form| %>
|
||||
<%= form.text_field :desc, :placeholder => "describe the connection..." %>
|
||||
<%= form.hidden_field :topic1id, :value => 0 %>
|
||||
<%= form.hidden_field :topic2id, :value => 0 %>
|
||||
<%= form.hidden_field :grabSynapse, :value => "null" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<%= form.text_field :name, :maxlength => 140, :placeholder => "title..." %>
|
||||
<%= form.hidden_field :metacode, :value => "Action" %>
|
||||
<%= form.hidden_field :x, :value => 0 %>
|
||||
<%= form.hidden_field :y, :value => 0 %>
|
||||
<%= form.hidden_field :grabTopic, :value => "null" %>
|
||||
<%= form.hidden_field :addSynapse, :value => false %>
|
||||
<div id="metacodeImgTitle"></div>
|
||||
<div class="clearfloat"></div>
|
||||
<% end %>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="sidebarFilterBox">
|
||||
<h3 class="filterByMetacode">Filter By Metacode</h3><span class="showAll">all</span><span class="hideAll">none</span>
|
||||
<div class="clearfloat"></div>
|
||||
<%= render :partial => 'main/filterbymetacode' %>
|
||||
<%= render :partial => 'shared/filterbymetacode' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
<% if authenticated? %>
|
||||
<%= render :partial => 'topics/new' %>
|
||||
<%= render :partial => 'synapses/new' %>
|
||||
<%= render :partial => 'main/metacodeoptions' %>
|
||||
<%= render :partial => 'shared/metacodeoptions' %>
|
||||
<% end %>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue