conte_rails_template 0.0.19 → 0.0.21
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/lib/conte_rails_template/version.rb +1 -1
- data/lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb +2 -2
- data/lib/generators/conte_rails_template/templates/erb/scaffold/edit.html.erb +0 -6
- data/lib/generators/conte_rails_template/templates/erb/scaffold/index.html.erb +2 -9
- data/lib/generators/conte_rails_template/templates/erb/scaffold/new.html.erb +0 -5
- data/lib/generators/conte_rails_template/templates/layout.html.erb +4 -4
- data/lib/generators/conte_rails_template/templates/shared/_breadcrumbs.html.erb +3 -0
- data/lib/generators/conte_rails_template/templates/shared/_page_toolbar.html.erb +5 -2
- data/vendor/assets/stylesheets/conte.css.scss +3 -6
- metadata +2 -4
- data/lib/generators/conte_rails_template/templates/shared/_breadcrumbs_default.html.erb +0 -2
- data/lib/generators/conte_rails_template/templates/shared/_breadcrumbs_home.html.erb +0 -1
- data/lib/generators/conte_rails_template/templates/shared/_breadcrumbs_navigation.html.erb +0 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
<%% content_for :
|
2
|
-
<%%=
|
1
|
+
<%% content_for :right_page_toolbar do %>
|
2
|
+
<%%= link_to(render_icon_and_text_content('icon-circle-arrow-left', "#{t('labels.back_to')}#{t('model.list', :model => <%= class_name.split('::').last %>.model_name.human)}"), <%= plural_table_name %>_path, class: 'btn btn-inverse') %>
|
3
3
|
<%% end %>
|
4
4
|
|
5
5
|
<%%= simple_form_for(@<%= singular_table_name %>, :html => {:class => 'form-horizontal' }) do |f| %>
|
@@ -1,8 +1,2 @@
|
|
1
|
-
<%% content_for :breadcrumbs do %>
|
2
|
-
<%%= render :partial => 'shared/breadcrumbs_default' %>
|
3
|
-
<%%= content_tag :li, link_to(render_icon_and_text_content('icon-file-alt', t('model.list', model: <%= class_name.split('::').last %>.model_name.human)), <%= plural_table_name %>_path) %>
|
4
|
-
<%%= content_tag :li, render_icon_and_text_content('icon-plus-sign', t('model.edit', model: <%= class_name.split('::').last %>.model_name.human)) %>
|
5
|
-
<%% end %>
|
6
|
-
|
7
1
|
<%%= render 'form' %>
|
8
2
|
|
@@ -1,14 +1,7 @@
|
|
1
|
-
<%% content_for :
|
2
|
-
<%%=
|
3
|
-
<%%= content_tag :li, render_icon_and_text_content('icon-file-alt', t('model.list', model: <%= class_name.split('::').last %>.model_name.human)) %>
|
1
|
+
<%% content_for :right_page_toolbar do %>
|
2
|
+
<%%= link_to(render_icon_and_text_content('icon-plus-sign', t('model.create', :model => <%= class_name.split('::').last %>.model_name.human)), new_<%= class_name.split('::').last.underscore.downcase %>_path, :class => 'btn btn-inverse') %>
|
4
3
|
<%% end %>
|
5
4
|
|
6
|
-
<%% content_for :page_toolbar do %>
|
7
|
-
<%%= render :partial => 'shared/page_toolbar', :locals => {:content => link_to(render_icon_and_text_content('icon-plus-sign', t('model.create', :model => <%= class_name.split('::').last %>.model_name.human)), new_<%= class_name.split('::').last.underscore.downcase %>_path, :class => 'btn btn-inverse')} %>
|
8
|
-
<%% end %>
|
9
|
-
|
10
|
-
<%%= render :partial => 'shared/notification' %>
|
11
|
-
|
12
5
|
<%%= grid(@<%= class_name.split('::').last.underscore.downcase.pluralize %>_grid, :show_filters => :always) do |g|
|
13
6
|
<% attributes.each do |attribute| -%>
|
14
7
|
g.column :name => t('activerecord.attributes.<%= class_name.split('::').last.underscore.downcase %>.<%= attribute.name %>'), :html => {:class => "grid-cell"} do |<%= class_name.split('::').last.underscore.downcase %>|
|
@@ -1,7 +1,2 @@
|
|
1
|
-
<%% content_for :breadcrumbs do %>
|
2
|
-
<%%= render :partial => 'shared/breadcrumbs_default' %>
|
3
|
-
<%%= content_tag :li, render_icon_and_text_content('icon-plus-sign', t('model.create', model: <%= class_name.split('::').last %>.model_name.human)) %>
|
4
|
-
<%% end %>
|
5
|
-
|
6
1
|
<%%= render 'form' %>
|
7
2
|
|
@@ -23,9 +23,7 @@
|
|
23
23
|
<div class="container-fluid">
|
24
24
|
<div class="row-fluid">
|
25
25
|
<div class="span6">
|
26
|
-
|
27
|
-
<%= yield :breadcrumbs %>
|
28
|
-
</ul>
|
26
|
+
<%= render :partial => 'shared/breadcrumbs' %>
|
29
27
|
</div>
|
30
28
|
<div class="span6">
|
31
29
|
<ul class="nav pull-right user-section">
|
@@ -48,7 +46,9 @@
|
|
48
46
|
|
49
47
|
</div>
|
50
48
|
|
51
|
-
<%=
|
49
|
+
<%= render :partial => 'shared/page_toolbar' %>
|
50
|
+
|
51
|
+
<%= render :partial => 'shared/notification' %>
|
52
52
|
|
53
53
|
<div id="content">
|
54
54
|
<%= yield %>
|
@@ -1,8 +1,11 @@
|
|
1
1
|
<div id="page-toolbar" class="container-fluid">
|
2
2
|
<div class="row-fluid">
|
3
|
-
<div class="span6
|
3
|
+
<div class="span6">
|
4
|
+
<%= yield :left_page_toolbar %>
|
5
|
+
</div>
|
6
|
+
<div class="span6">
|
4
7
|
<div class="btn-toolbar pull-right">
|
5
|
-
|
8
|
+
<%= yield :right_page_toolbar %>
|
6
9
|
</div>
|
7
10
|
</div>
|
8
11
|
</div>
|
@@ -18,7 +18,7 @@ a:hover {
|
|
18
18
|
}
|
19
19
|
|
20
20
|
body {
|
21
|
-
background: #
|
21
|
+
background: #E3E4E5;
|
22
22
|
height: 100%;
|
23
23
|
width: 100%;
|
24
24
|
position: absolute;
|
@@ -28,7 +28,6 @@ body {
|
|
28
28
|
#page {
|
29
29
|
width: 100%; height: inherit;
|
30
30
|
margin: 0px; padding: 0px;
|
31
|
-
background: #3B3D43;
|
32
31
|
|
33
32
|
> .row-fluid {
|
34
33
|
height: inherit;
|
@@ -123,16 +122,14 @@ body {
|
|
123
122
|
#main {
|
124
123
|
width: 84%;
|
125
124
|
margin: 0px;
|
126
|
-
background: #E3E4E5;
|
127
|
-
min-height: 100%;
|
128
125
|
#header {
|
129
126
|
position: relative;
|
130
127
|
z-index: 1000;
|
131
128
|
@include box-shadow(rgba(0, 0, 0, 0.3) 0px 2px 3px);
|
132
129
|
height: 50px;
|
133
|
-
.
|
130
|
+
.breadcrumbs {
|
134
131
|
background: none;
|
135
|
-
padding: 0px;
|
132
|
+
padding: 0px; margin: 0px;
|
136
133
|
|
137
134
|
li {
|
138
135
|
height: 50px;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conte_rails_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -110,9 +110,7 @@ files:
|
|
110
110
|
- lib/generators/conte_rails_template/templates/layout.html.erb
|
111
111
|
- lib/generators/conte_rails_template/templates/navigation_renderers.rb
|
112
112
|
- lib/generators/conte_rails_template/templates/session.html.erb
|
113
|
-
- lib/generators/conte_rails_template/templates/shared/
|
114
|
-
- lib/generators/conte_rails_template/templates/shared/_breadcrumbs_home.html.erb
|
115
|
-
- lib/generators/conte_rails_template/templates/shared/_breadcrumbs_navigation.html.erb
|
113
|
+
- lib/generators/conte_rails_template/templates/shared/_breadcrumbs.html.erb
|
116
114
|
- lib/generators/conte_rails_template/templates/shared/_notification.html.erb
|
117
115
|
- lib/generators/conte_rails_template/templates/shared/_page_toolbar.html.erb
|
118
116
|
- lib/generators/conte_rails_template/templates/simple_navigation.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
<li><%= link_to render_icon_and_text_content('icon-home', t('labels.home')), "#{request.protocol}#{request.host_with_port}"%></li>
|
@@ -1 +0,0 @@
|
|
1
|
-
<li><%= render_navigation(level: 1..2, renderer: :breadcrumbs_renderer) %></li>
|