rad_common_interface 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/static/face.js +1 -0
- data/app/static/themes/default/style/{micelaneous.less → miscellaneous.less} +0 -0
- data/app/static/themes/default/style.less +1 -1
- data/app/views/themes/default/application.html.haml +2 -1
- data/lib/common_interface/spec.rb +2 -2
- data/lib/face/demo/base.rb +4 -4
- data/readme.md +3 -3
- data/spec/helpers_spec.rb +8 -10
- metadata +3 -3
data/app/static/face.js
CHANGED
File without changes
|
data/lib/face/demo/base.rb
CHANGED
@@ -5,8 +5,8 @@ class Rad::Face::Demo::Base
|
|
5
5
|
layout '/rad/face/demo/layout'
|
6
6
|
|
7
7
|
def select_menu
|
8
|
-
|
9
|
-
|
8
|
+
request.session['top_menu'] = params[:top_menu] if params[:top_menu]
|
9
|
+
request.session['side_menu'] = params[:side_menu] if params[:side_menu]
|
10
10
|
|
11
11
|
redirect_to :back
|
12
12
|
end
|
@@ -30,10 +30,10 @@ class Rad::Face::Demo::Base
|
|
30
30
|
title: workspace.method_name.to_s.humanize,
|
31
31
|
|
32
32
|
top_menu_items: %w(Email Contacts Calendar Files),
|
33
|
-
active_top_menu: (
|
33
|
+
active_top_menu: (request.session['top_menu'] || 'Email'),
|
34
34
|
|
35
35
|
side_menu_items: %w(control_caption_0 control_caption_1 control_caption_2),
|
36
|
-
active_side_menu: (
|
36
|
+
active_side_menu: (request.session['side_menu'] || 'control_caption_0'),
|
37
37
|
|
38
38
|
tabs: %w(Compose Contacts Import Categories),
|
39
39
|
active_tab: 'Compose',
|
data/readme.md
CHANGED
@@ -14,7 +14,7 @@ It acts like an abstraction layer, allowing you to define your custom API (or DS
|
|
14
14
|
* [Sample of HomePage][sample1], [sample of page (with another design)][sample2]
|
15
15
|
* [List of all Samples][list_of_samples]
|
16
16
|
|
17
|
-
Real-life sample - [http://
|
17
|
+
Real-life sample - [http://robotigra.ru](http://robotigra.ru), [http://ruby-lang.info](http://ruby-lang.info), [http://petrush.in](http://petrush.in) there's no any custom template, all pages are made with the [Face][face] plugin.
|
18
18
|
|
19
19
|
## Advantages
|
20
20
|
|
@@ -46,9 +46,9 @@ But to create Your own design you need to create your own 'Default UI', using th
|
|
46
46
|
$ lessc style.less > style.css
|
47
47
|
$ lessc reset.less > reset.css
|
48
48
|
|
49
|
-
Copyright (c) Alexey Petrushin
|
49
|
+
Copyright (c) Alexey Petrushin http://petrush.in, released under the MIT license.
|
50
50
|
|
51
|
-
[face]: http://github.com/alexeypetrushin/
|
51
|
+
[face]: http://github.com/alexeypetrushin/rad_face
|
52
52
|
|
53
53
|
[sample1]: http://4ire.net/ci_sites/home?layout_template=home&theme=simple_organization
|
54
54
|
[sample2]: http://4ire.net/ci_elements/page?theme=default
|
data/spec/helpers_spec.rb
CHANGED
@@ -8,15 +8,13 @@ describe "Helpers" do
|
|
8
8
|
response.body
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
id: 'basic_form_tag', action: '/some_action', method: 'post'
|
14
|
-
|
15
|
-
end
|
11
|
+
if String.method_defined? :xhtml
|
12
|
+
it "form_tag should correctly render form (from error)" do
|
13
|
+
body.to_xhtml('#basic_form_tag').to_fuzzy_hash.should == {id: 'basic_form_tag', action: '/some_action', method: 'post'}
|
14
|
+
end
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
16
|
+
it "form_for should correctly render form (from error)" do
|
17
|
+
body.to_xhtml('#basic_form_for').to_fuzzy_hash.should == {id: 'basic_form_for', action: '/some_action', method: 'post'}
|
18
|
+
end
|
19
|
+
end
|
22
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rad_common_interface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-30 00:00:00 +04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -91,7 +91,7 @@ files:
|
|
91
91
|
- app/static/themes/default/style/forms.less
|
92
92
|
- app/static/themes/default/style/items.less
|
93
93
|
- app/static/themes/default/style/markup.less
|
94
|
-
- app/static/themes/default/style/
|
94
|
+
- app/static/themes/default/style/miscellaneous.less
|
95
95
|
- app/static/themes/default/style/mixins.less
|
96
96
|
- app/static/themes/default/style/styles.less
|
97
97
|
- app/static/themes/default/style/tools.less
|