cytoplasm 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/cytoplasm/cytoField.js.erb +22 -2
- data/app/assets/javascripts/cytoplasm/cytoMenu.js.erb +4 -0
- data/app/assets/javascripts/cytoplasm/cytoSelect.js.erb +6 -1
- data/app/assets/javascripts/cytoplasm/cytoSlider.js.erb +3 -1
- data/app/assets/javascripts/cytoplasm/cytoTable.js.erb +19 -5
- data/app/assets/javascripts/cytoplasm/cytoplasm.js.erb +2 -13
- data/app/controllers/cytoplasm/dash_controller.rb +9 -0
- data/app/controllers/cytoplasm/fonts_controller.rb +9 -0
- data/app/controllers/cytoplasm/performance_controller.rb +16 -0
- data/app/controllers/cytoplasm/settings_controller.rb +0 -7
- data/app/controllers/cytoplasm/transitions_controller.rb +9 -0
- data/app/views/cytoplasm/dash/index.html.erb +72 -0
- data/app/views/cytoplasm/fonts/_installer.html.erb +0 -1
- data/app/views/cytoplasm/fonts/{_style_list.html.erb → _layout_settings.html.erb} +1 -3
- data/app/views/cytoplasm/fonts/index.html.erb +4 -2
- data/app/views/cytoplasm/fonts/install.html.erb +2 -0
- data/app/views/cytoplasm/fonts/layout.html.erb +2 -0
- data/app/views/cytoplasm/fonts/manage.html.erb +16 -0
- data/app/views/cytoplasm/performance/index.html.erb +1 -0
- data/app/views/cytoplasm/{settings → performance}/precompile.html.erb +0 -0
- data/app/views/cytoplasm/settings/index.html.erb +1 -63
- data/app/views/cytoplasm/transitions/_form.html.erb +0 -0
- data/app/views/cytoplasm/transitions/edit.html.erb +0 -0
- data/app/views/cytoplasm/transitions/index.html.erb +1 -0
- data/app/views/cytoplasm/transitions/layout.html.erb +0 -0
- data/app/views/cytoplasm/transitions/new.html.erb +0 -0
- data/app/views/cytoplasm/transitions/show.html.erb +0 -0
- data/config/routes.rb +24 -9
- data/lib/cytoplasm.rb +4 -0
- data/lib/cytoplasm/version.rb +1 -1
- data/test/dummy/Gemfile.lock +3 -3
- data/test/dummy/log/development.log +21137 -0
- data/test/dummy/tmp/cache/assets/C77/C20/sprockets%2F165a39476f3fa731c0af49432141049c +0 -0
- data/test/dummy/tmp/cache/assets/C8F/0F0/sprockets%2F369f11075c8c5f939359cb5cb0569281 +0 -0
- data/test/dummy/tmp/cache/assets/CC4/F20/sprockets%2F7579067f2838847e2cf44a39d418fb1b +0 -0
- data/test/dummy/tmp/cache/assets/CD4/490/sprockets%2F5609c0966d710286dad06a9ea4b42c11 +0 -0
- data/test/dummy/tmp/cache/assets/CF3/120/sprockets%2Fe2b304b015ce82a222d634e7e544b0b3 +0 -0
- data/test/dummy/tmp/cache/assets/D03/6B0/sprockets%2Fd3cfc780201b87a3439e35c5236bb71a +0 -0
- data/test/dummy/tmp/cache/assets/D06/7A0/sprockets%2Fa46b76e739460d2691f4121ffa8a0ca0 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/4A0/sprockets%2F6b27287928ba630c1b25dfa80ee18b48 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/7D0/sprockets%2F89200785fe2710582a6c1b8d04ae7fbe +0 -0
- data/test/dummy/tmp/cache/assets/D14/170/sprockets%2F40a7b83bb067eea7ce2c8394e1529287 +0 -0
- data/test/dummy/tmp/cache/assets/D15/CE0/sprockets%2Fa1310379a19df3c1796f2f67dcd5915d +0 -0
- data/test/dummy/tmp/cache/assets/D49/450/sprockets%2F2b7712073416ff8853efff262ddec53f +0 -0
- data/test/dummy/tmp/cache/assets/D6E/3E0/sprockets%2F1be4cbdc9c19703c546405f087aee92d +0 -0
- data/test/dummy/tmp/cache/assets/D83/C70/sprockets%2Ff536f7a68e692747fca1d2fcd5c07f57 +0 -0
- data/test/dummy/tmp/cache/assets/D87/200/sprockets%2Fe0c1351fbd86032af3fd4b32c408acd4 +0 -0
- data/test/dummy/tmp/cache/assets/D87/C40/sprockets%2F9dcd7a6999affe28e91e514cee079016 +0 -0
- data/test/dummy/tmp/cache/assets/D97/1C0/sprockets%2Faa0ccf8e63f048456ade02a39fa8571a +0 -0
- data/test/dummy/tmp/cache/assets/DFB/400/sprockets%2F0c2b7f7aeeee011a378b79e3bc28fae5 +0 -0
- data/test/dummy/tmp/cache/assets/E00/880/sprockets%2Fecb876bb310c1a3e6fd534ece45c9ed9 +0 -0
- data/test/dummy/tmp/cache/assets/E05/E70/sprockets%2Fead5bfd3417fc5de81d3794c3e443cfe +0 -0
- data/test/dummy/tmp/cache/assets/E8C/480/sprockets%2Fdacb331ac961cf7b7cbc69abe8fb74dd +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +22 -6
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
var methods = {
|
|
18
18
|
init:function(options){
|
|
19
19
|
return this.each(function(){
|
|
20
|
-
var $this = $(this);
|
|
20
|
+
var $this = $(this).addClass('cytoField');
|
|
21
21
|
var settings = $.extend(true,{},defaults,options);
|
|
22
22
|
|
|
23
23
|
// Setup widget
|
|
@@ -52,5 +52,25 @@
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
$(window).resize(function(){$('.cytoField').cytoField('resize');});
|
|
55
|
-
$.Cytoplasm("ready",function(){
|
|
55
|
+
$.Cytoplasm("ready",function(){
|
|
56
|
+
$.Cytoplasm("addStyles","cytofield_styles",{
|
|
57
|
+
".cytoField":{
|
|
58
|
+
width:"100%",
|
|
59
|
+
border:"1px solid #aaa",
|
|
60
|
+
"border-radius":"5px",
|
|
61
|
+
"font":$.Cytoplasm("vars","fonts.sizes.normal")+" "+$.Cytoplasm("vars","fonts.faces.regular"),
|
|
62
|
+
"box-shadow":"inset 0px 0px 5px rgba(0,0,0,0.25)",
|
|
63
|
+
"&[type=text],&[type=password],&[type=email]":{
|
|
64
|
+
height:"28px",
|
|
65
|
+
padding:"0px 7px"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"textarea.cytoField":{
|
|
69
|
+
resize:"none",
|
|
70
|
+
height:"200px",
|
|
71
|
+
padding:"7px"
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
$('.cytoField').cytoField();
|
|
75
|
+
});
|
|
56
76
|
})(jQuery);
|
|
@@ -461,5 +461,10 @@
|
|
|
461
461
|
};
|
|
462
462
|
|
|
463
463
|
$(window).resize(function(){$('select.cytoSelect').cytoSelect("resize");});
|
|
464
|
-
$.Cytoplasm("ready",function(){
|
|
464
|
+
$.Cytoplasm("ready",function(){
|
|
465
|
+
$.Cytoplasm("addStyles","cytoselect_styles",{
|
|
466
|
+
|
|
467
|
+
});
|
|
468
|
+
$('select.cytoSelect').cytoSelect();
|
|
469
|
+
});
|
|
465
470
|
})(jQuery);
|
|
@@ -55,10 +55,7 @@
|
|
|
55
55
|
css:{}
|
|
56
56
|
},
|
|
57
57
|
label:{
|
|
58
|
-
css:{
|
|
59
|
-
font:"<%=Cytoplasm.vars()[:fonts][:sizes][:small]+" "+Cytoplasm.vars()[:fonts][:faces][:light]%>",
|
|
60
|
-
width:100
|
|
61
|
-
}
|
|
58
|
+
css:{}
|
|
62
59
|
}
|
|
63
60
|
}
|
|
64
61
|
}
|
|
@@ -201,5 +198,22 @@
|
|
|
201
198
|
};
|
|
202
199
|
|
|
203
200
|
$(window).resize(function(){$('.cytoTable').cytoTable('resize');});
|
|
204
|
-
$.Cytoplasm("ready",function(){
|
|
201
|
+
$.Cytoplasm("ready",function(){
|
|
202
|
+
$.Cytoplasm("addStyles","cytotable_styles",{
|
|
203
|
+
'table.cytoTable':{
|
|
204
|
+
background:$.Cytoplasm("vars","colors.plugins.cytoTable.background"),
|
|
205
|
+
table:{
|
|
206
|
+
'margin-bottom':'0px',
|
|
207
|
+
"font-family":$.Cytoplasm("vars","fonts.faces.light"),
|
|
208
|
+
"font-weight":($.Cytoplasm("vars","fonts.faces.light")==$.Cytoplasm("vars","fonts.faces.regular"))?"lighter":"normal"
|
|
209
|
+
},
|
|
210
|
+
td:{
|
|
211
|
+
border:$.Cytoplasm("vars","colors.plugins.cytoTable.border"),
|
|
212
|
+
"&[data-type=label]":{"width":"100px"},
|
|
213
|
+
"&[data-type=label],&[data-type=info]":{"font":$.Cytoplasm("vars","fonts.sizes.small")+" "+$.Cytoplasm("vars","fonts.faces.light")}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
$('.cytoTable').cytoTable();
|
|
218
|
+
});
|
|
205
219
|
})(jQuery);
|
|
@@ -32,7 +32,7 @@ var Cytoplasm;
|
|
|
32
32
|
];
|
|
33
33
|
|
|
34
34
|
// Default styles
|
|
35
|
-
var static_styles = "body{margin:0;height:100%;overflow-y:scroll}h1,h2,h3,h4,h5,h6{margin:20px 0}header{overflow:hidden;h1{margin:0;white-space:nowrap;cursor:pointer;display:inline;text-shadow:0 0 10px rgba(0,0,0,0.5)}#logo{z-index:1000}}nav{ul{padding:0;list-style:none;li{display:inline-block}}}section{min-height:400px;background:white;overflow:hidden;box-shadow:0 0 10px rgba(0,0,0,0.8);clear:both;&>:first-child{margin-top:0;padding-top:0}&>:last-child{margin-bottom:0;padding-bottom:0}}footer{overflow:hidden}
|
|
35
|
+
var static_styles = "body{margin:0;height:100%;overflow-y:scroll}h1,h2,h3,h4,h5,h6{margin:20px 0}header{overflow:hidden;h1{margin:0;white-space:nowrap;cursor:pointer;display:inline;text-shadow:0 0 10px rgba(0,0,0,0.5)}#logo{z-index:1000}}nav{ul{padding:0;list-style:none;li{display:inline-block}}}section{min-height:400px;background:white;overflow:hidden;box-shadow:0 0 10px rgba(0,0,0,0.8);clear:both;&>:first-child{margin-top:0;padding-top:0}&>:last-child{margin-bottom:0;padding-bottom:0}}footer{overflow:hidden}button,input[type=submit]{&.cytoButton{border-radius:5px;cursor:pointer;&.large{width:100%;height:50px}}}";
|
|
36
36
|
|
|
37
37
|
// Gradient manipulation library
|
|
38
38
|
var parseGradient = function(grad,reverse){
|
|
@@ -179,7 +179,7 @@ var Cytoplasm;
|
|
|
179
179
|
"font-family":vars.fonts.faces.bold,
|
|
180
180
|
"font-weight":boldweight
|
|
181
181
|
},
|
|
182
|
-
'h2,h4,h6
|
|
182
|
+
'h2,h4,h6,.cytoButton':{
|
|
183
183
|
"font-family":vars.fonts.faces.light,
|
|
184
184
|
"font-weight":lightweight
|
|
185
185
|
},
|
|
@@ -226,17 +226,6 @@ var Cytoplasm;
|
|
|
226
226
|
color:vars.colors.links.active.text
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
|
-
'table.cytoTable':{
|
|
230
|
-
background:vars.colors.plugins.cytoTable.background,
|
|
231
|
-
table:{
|
|
232
|
-
'margin-bottom':'0px'
|
|
233
|
-
},
|
|
234
|
-
td:{
|
|
235
|
-
border:vars.colors.plugins.cytoTable.border,
|
|
236
|
-
"&[data-type=label]":{"font-size":vars.fonts.sizes.small}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
'.cytoField':{"font-family":vars.fonts.faces.regular},
|
|
240
229
|
'.cytoButton':{
|
|
241
230
|
border:vars.colors.plugins.cytoButton.border,
|
|
242
231
|
color:vars.colors.plugins.cytoButton.text,
|
|
@@ -332,6 +332,15 @@ module Cytoplasm
|
|
|
332
332
|
@font = Cytoplasm::FontsController.fetch_family(params[:directory],params[:family])
|
|
333
333
|
end
|
|
334
334
|
|
|
335
|
+
def install
|
|
336
|
+
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
def manage
|
|
340
|
+
@installed = Cytoplasm::FontsController.fetch_imported()
|
|
341
|
+
@enabled = Cytoplasm::FontsController.fetch_enabled()
|
|
342
|
+
end
|
|
343
|
+
|
|
335
344
|
def import
|
|
336
345
|
render :text => Cytoplasm::Ajax.success(Cytoplasm::FontsController.import(params[:directory],params[:family]))
|
|
337
346
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Cytoplasm
|
|
2
|
+
class PerformanceController < ApplicationController
|
|
3
|
+
|
|
4
|
+
def index
|
|
5
|
+
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def precompile
|
|
9
|
+
if request.post?
|
|
10
|
+
Cytoplasm.precompile_styles(params[:styles])
|
|
11
|
+
render :text => Cytoplasm::Ajax.success()
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -27,13 +27,6 @@ module Cytoplasm
|
|
|
27
27
|
redirect_to cytoplasm_settings_url
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
def precompile
|
|
31
|
-
if request.post?
|
|
32
|
-
Cytoplasm.precompile_styles(params[:styles])
|
|
33
|
-
render :text => Cytoplasm::Ajax.success()
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
|
|
37
30
|
def fetch_vars
|
|
38
31
|
Cytoplasm.load_vars_from("config/cytoplasm-config.yml")
|
|
39
32
|
return Cytoplasm.vars()
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<h2>Cytoplasm <b>Backstage</b></h2>
|
|
2
|
+
<hr />
|
|
3
|
+
|
|
4
|
+
<ul class="tile_list">
|
|
5
|
+
<li>
|
|
6
|
+
<%=image_tag("cytoplasm/settings-settings-3.png")%>
|
|
7
|
+
<h3><%=link_to("Settings",cytoplasm_settings_url)%></h3>
|
|
8
|
+
<ul>
|
|
9
|
+
<li><%=link_to("Layout General Settings",cytoplasm_layout_settings_url)%></li>
|
|
10
|
+
<li><%=link_to("Layout Color Settings",cytoplasm_colors_settings_url)%></li>
|
|
11
|
+
<li><%=link_to("Advanced Configuration Tool",cytoplasm_advanced_config_url)%></li>
|
|
12
|
+
</ul>
|
|
13
|
+
</li>
|
|
14
|
+
|
|
15
|
+
<li>
|
|
16
|
+
<%=image_tag("cytoplasm/text-underline-color.png")%>
|
|
17
|
+
<h3><%=link_to("Fonts",cytoplasm_fonts_url)%></h3>
|
|
18
|
+
<ul>
|
|
19
|
+
<li><%=link_to("Layout Font Settings",cytoplasm_layout_fonts_url)%></li>
|
|
20
|
+
<li><%=link_to("Install New Fonts",cytoplasm_install_fonts_url)%></li>
|
|
21
|
+
<li><%=link_to("Manage Installed Fonts",cytoplasm_manage_fonts_url)%></li>
|
|
22
|
+
</ul>
|
|
23
|
+
</li>
|
|
24
|
+
|
|
25
|
+
<li>
|
|
26
|
+
<%=image_tag("cytoplasm/transition.png")%>
|
|
27
|
+
<h3><%=link_to("Transitions",cytoplasm_transitions_url)%></h3>
|
|
28
|
+
<ul>
|
|
29
|
+
<li><%=link_to("Layout Transition Settings","#")%></li>
|
|
30
|
+
<li><%=link_to("Create a Transition","#")%></li>
|
|
31
|
+
</ul>
|
|
32
|
+
</li>
|
|
33
|
+
|
|
34
|
+
<li>
|
|
35
|
+
<%=image_tag("cytoplasm/settings-dashboard.png")%>
|
|
36
|
+
<h3><%=link_to("Performance",cytoplasm_performance_url)%></h3>
|
|
37
|
+
<ul>
|
|
38
|
+
<li><%=link_to("Layout Performance Settings","#")%></li>
|
|
39
|
+
<li><%=link_to("Precompile CSS",cytoplasm_precompile_url)%></li>
|
|
40
|
+
</ul>
|
|
41
|
+
</li>
|
|
42
|
+
</ul>
|
|
43
|
+
|
|
44
|
+
<script type="text/javascript">
|
|
45
|
+
(function($){
|
|
46
|
+
$.Cytoplasm("ready",function(){
|
|
47
|
+
$('.tile_list').css({
|
|
48
|
+
'list-style':'none',
|
|
49
|
+
margin:0,
|
|
50
|
+
padding:"25px 0px"
|
|
51
|
+
}).children('li').css({
|
|
52
|
+
float:'left',
|
|
53
|
+
width:'25%',
|
|
54
|
+
'text-align':'center',
|
|
55
|
+
}).hover(
|
|
56
|
+
function(e){$(this).children("img").css("opacity",1);},
|
|
57
|
+
function(e){$(this).children("img").css("opacity",0.8);}
|
|
58
|
+
).children('img').css({
|
|
59
|
+
width:256,
|
|
60
|
+
opacity:0.8
|
|
61
|
+
}).click(function(e){
|
|
62
|
+
window.location = $(this).siblings("h3").find("a").attr("href");
|
|
63
|
+
}).end().children('ul').css({
|
|
64
|
+
'list-style':'none',
|
|
65
|
+
padding:0,
|
|
66
|
+
margin:0
|
|
67
|
+
}).children('li').css({
|
|
68
|
+
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
})(jQuery);
|
|
72
|
+
</script>
|
|
@@ -4,10 +4,8 @@ sizes = Cytoplasm.vars()[:fonts][:sizes]
|
|
|
4
4
|
%>
|
|
5
5
|
<form id="cytoplasm_fonts_settings_form" action="<%=cytoplasm_update_url%>" method="post">
|
|
6
6
|
<table class="cytoTable">
|
|
7
|
-
<tr><td class='headercell' colspan=2><h3>Typography Settings</h3></td></tr>
|
|
8
|
-
<tr><td class='infocell' colspan=2>Select individual fonts below if desired.</td></tr>
|
|
9
|
-
|
|
10
7
|
<tr><td class='headercell' colspan=2><h4>Font Faces</h4></td></tr>
|
|
8
|
+
<tr><td class='infocell' colspan=2>Select individual fonts below if desired.</td></tr>
|
|
11
9
|
<% styles.each do |style| %>
|
|
12
10
|
<tr>
|
|
13
11
|
<td class='labelcell'><%=style.capitalize%>:</td>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h2>Cytoplasm Font
|
|
1
|
+
<h2>Cytoplasm Font Settings</h2>
|
|
2
2
|
|
|
3
3
|
<hr />
|
|
4
4
|
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
<hr />
|
|
18
18
|
<% end %>
|
|
19
19
|
|
|
20
|
+
<h3>Install New Fonts</h3>
|
|
20
21
|
<%=render :partial => 'installer'%>
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
<h3>Layout Font Settings</h3>
|
|
24
|
+
<%=render :partial => "layout_settings" %>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<h2>Cytoplasm <b>Font Manager</b></h2>
|
|
2
|
+
|
|
3
|
+
<% if @enabled["fontsquirrel"].any? or @enabled["googlewebfonts"].any? %>
|
|
4
|
+
<hr />
|
|
5
|
+
<h3>Enabled Fonts</h3>
|
|
6
|
+
<p>The following fonts are being loaded into every page of your site. To use them, simply add a font-family CSS rule referencing the <b>CSS Name</b> to any element.</p>
|
|
7
|
+
<p><b>Remember: less is more!</b> Loading tons of fonts can severely affect page load times, and using more than a few at a time is widely considered poor design practice anyway. It is recommended that you simply disable any fonts that you aren't using.</p>
|
|
8
|
+
<%=render :partial => 'list', :object => @enabled %>
|
|
9
|
+
<% end %>
|
|
10
|
+
|
|
11
|
+
<% if @installed["fontsquirrel"].any? or @installed["googlewebfonts"].any? %>
|
|
12
|
+
<hr />
|
|
13
|
+
<h3>Installed Fonts</h3>
|
|
14
|
+
<p>This includes all fonts that are currently installed into this Cytoplasm project.</p>
|
|
15
|
+
<%=render :partial => 'list', :object => @installed %>
|
|
16
|
+
<% end %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h2>Performance</h2>
|
|
File without changes
|
|
@@ -1,65 +1,3 @@
|
|
|
1
|
-
<h2
|
|
1
|
+
<h2>Cytoplasm <b>Settings</b></h2>
|
|
2
2
|
<hr />
|
|
3
3
|
|
|
4
|
-
<ul class="tile_list">
|
|
5
|
-
<li>
|
|
6
|
-
<%=image_tag("cytoplasm/settings-settings-3.png",:width => 256)%>
|
|
7
|
-
<h3><%=link_to("Settings",cytoplasm_general_settings_url)%></h3>
|
|
8
|
-
<ul>
|
|
9
|
-
<li><%=link_to("Layout Settings",cytoplasm_layout_settings_url)%></li>
|
|
10
|
-
<li><%=link_to("Colors Settings",cytoplasm_colors_settings_url)%></li>
|
|
11
|
-
<li><%=link_to("Advanced Configuration Tool",cytoplasm_advanced_config_url)%></li>
|
|
12
|
-
</ul>
|
|
13
|
-
</li>
|
|
14
|
-
|
|
15
|
-
<li>
|
|
16
|
-
<%=image_tag("cytoplasm/text-underline-color.png",:width => 256)%>
|
|
17
|
-
<h3><%=link_to("Fonts",cytoplasm_fonts_url)%></h3>
|
|
18
|
-
<ul>
|
|
19
|
-
<li><%=link_to("Install New Fonts","#")%></li>
|
|
20
|
-
<li><%=link_to("Manage Installed Fonts",cytoplasm_fonts_url)%></li>
|
|
21
|
-
<li><%=link_to("Layout Font Settings","#")%></li>
|
|
22
|
-
</ul>
|
|
23
|
-
</li>
|
|
24
|
-
|
|
25
|
-
<li>
|
|
26
|
-
<%=image_tag("cytoplasm/transition.png",:width => 256)%>
|
|
27
|
-
<h3><%=link_to("Transitions","#")%></h3>
|
|
28
|
-
<ul>
|
|
29
|
-
<li><%=link_to("Layout Transition Settings","#")%></li>
|
|
30
|
-
<li><%=link_to("Create a Transition","#")%></li>
|
|
31
|
-
</ul>
|
|
32
|
-
</li>
|
|
33
|
-
|
|
34
|
-
<li>
|
|
35
|
-
<%=image_tag("cytoplasm/settings-dashboard.png",:width => 256)%>
|
|
36
|
-
<h3><%=link_to("Performance","#")%></h3>
|
|
37
|
-
<ul>
|
|
38
|
-
<li><%=link_to("Precompile CSS",cytoplasm_precompile_url)%></li>
|
|
39
|
-
</ul>
|
|
40
|
-
</li>
|
|
41
|
-
</ul>
|
|
42
|
-
|
|
43
|
-
<script type="text/javascript">
|
|
44
|
-
(function($){
|
|
45
|
-
$.Cytoplasm("ready",function(){
|
|
46
|
-
$('.tile_list').css({
|
|
47
|
-
'list-style':'none',
|
|
48
|
-
margin:0,
|
|
49
|
-
padding:"25px 0px"
|
|
50
|
-
}).children('li').css({
|
|
51
|
-
float:'left',
|
|
52
|
-
width:'25%',
|
|
53
|
-
'text-align':'center'
|
|
54
|
-
}).children('img').click(function(e){
|
|
55
|
-
window.location = $(this).siblings("h3").find("a").attr("href");
|
|
56
|
-
}).end().children('ul').css({
|
|
57
|
-
'list-style':'none',
|
|
58
|
-
padding:0,
|
|
59
|
-
margin:0
|
|
60
|
-
}).children('li').css({
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
})(jQuery);
|
|
65
|
-
</script>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h2>Transitions</h2>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/config/routes.rb
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
Rails.application.routes.draw do
|
|
2
|
-
# Development environment only
|
|
2
|
+
# --- Development environment only ---
|
|
3
3
|
if Rails.env.development?
|
|
4
|
+
# Dashboard
|
|
5
|
+
get "/cytoplasm" => "Cytoplasm/dash#index", :as => :cytoplasm
|
|
6
|
+
|
|
4
7
|
# Settings
|
|
5
|
-
get "/cytoplasm" => "Cytoplasm/settings#index", :as => :cytoplasm_settings
|
|
8
|
+
get "/cytoplasm/settings" => "Cytoplasm/settings#index", :as => :cytoplasm_settings
|
|
6
9
|
get "/cytoplasm/general" => "Cytoplasm/settings#general", :as => :cytoplasm_general_settings
|
|
7
10
|
get "/cytoplasm/layout" => "Cytoplasm/settings#layout", :as => :cytoplasm_layout_settings
|
|
8
11
|
get "/cytoplasm/colors" => "Cytoplasm/settings#colors", :as => :cytoplasm_colors_settings
|
|
@@ -10,20 +13,32 @@ Rails.application.routes.draw do
|
|
|
10
13
|
post "/cytoplasm/update" => "Cytoplasm/settings#update", :as => :cytoplasm_update
|
|
11
14
|
|
|
12
15
|
# Fonts
|
|
13
|
-
get "/cytoplasm/fonts" => "Cytoplasm/fonts#index", :
|
|
14
|
-
get "/cytoplasm/fonts/:directory/:family" => "Cytoplasm/fonts#show", :
|
|
16
|
+
get "/cytoplasm/fonts" => "Cytoplasm/fonts#index", :as => :cytoplasm_fonts
|
|
17
|
+
get "/cytoplasm/fonts/:directory/:family" => "Cytoplasm/fonts#show", :as => :cytoplasm_show_font
|
|
18
|
+
get "/cytoplasm/fonts/install" => "Cytoplasm/fonts#install", :as => :cytoplasm_install_fonts
|
|
19
|
+
get "/cytoplasm/fonts/manage" => "Cytoplasm/fonts#manage", :as => :cytoplasm_manage_fonts
|
|
20
|
+
get "/cytoplasm/fonts/layout" => "Cytoplasm/fonts#layout", :as => :cytoplasm_layout_fonts
|
|
15
21
|
post "/cytoplasm/fonts/import" => "Cytoplasm/fonts#import"
|
|
16
22
|
post "/cytoplasm/fonts/remove" => "Cytoplasm/fonts#remove"
|
|
17
23
|
post "/cytoplasm/fonts/enable" => "Cytoplasm/fonts#enable"
|
|
18
24
|
post "/cytoplasm/fonts/disable" => "Cytoplasm/fonts#disable"
|
|
25
|
+
|
|
26
|
+
# Transitions
|
|
27
|
+
get "/cytoplasm/transitions" => "Cytoplasm/transitions#index", :as => :cytoplasm_transitions
|
|
28
|
+
get "/cytoplasm/transitions/layout" => "Cytoplasm/transitions#layout", :as => :cytoplasm_layout_transitions
|
|
29
|
+
get "/cytoplasm/transitions/new" => "Cytoplasm/transitions#new", :as => :cytoplasm_new_transition
|
|
30
|
+
|
|
31
|
+
# Performance
|
|
32
|
+
get "/cytoplasm/performance" => "Cytoplasm/performance#index", :as => :cytoplasm_performance
|
|
33
|
+
get "/cytoplasm/precompile" => "Cytoplasm/performance#precompile", :as => :cytoplasm_precompile
|
|
34
|
+
post "/cytoplasm/precompile" => "Cytoplasm/performance#precompile"
|
|
19
35
|
end
|
|
20
36
|
|
|
21
|
-
# All environments
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
post "/cytoplasm/precompile" => "Cytoplasm/settings#precompile"
|
|
37
|
+
# --- All environments ---
|
|
38
|
+
|
|
39
|
+
# Settings
|
|
25
40
|
post "/cytoplasm/settings/fetch" => "Cytoplasm/settings#fetch"
|
|
26
41
|
|
|
27
|
-
#
|
|
42
|
+
# Fonts
|
|
28
43
|
post "/cytoplasm/fonts/fetch_all" => "Cytoplasm/fonts#fetch_all"
|
|
29
44
|
end
|