repres-bootstrap 1.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/assets/javascripts/repres/bootstrap/application.js +1 -1
- data/app/assets/stylesheets/repres/bootstrap/application.css +0 -1
- data/app/views/layouts/repres/bootstrap/application.html.erb +15 -0
- data/app/views/repres/bootstrap/_script.html.erb +5 -5
- data/app/views/repres/bootstrap/_style.html.erb +3 -3
- data/lib/repres/bootstrap/version.rb +1 -1
- metadata +18 -4
- data/app/views/layouts/unirer/bootstrap/application.html.erb +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 262cda5d827f1c0a5dda9172790125b844d92bd2
|
|
4
|
+
data.tar.gz: 2bde68577b36d80d3c263161ae140e5bab6273bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbefe7a16e0ed0bf14f7aefa73cfcaa61f04106534729ed428e0a76d06c0b8a6b6afb3c9c30491103e4c7e5238b53563c704db6b3e62d9d0d73f92d58f0623bd
|
|
7
|
+
data.tar.gz: 954fab396962bb756202f4544f3b2c8a06ecc5e59a23f463a61df7ce137d6d29b8b7f84ebc2950e002873949a6088574a28c8c3b05b5165bba43f78ad94b33ad
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ gem 'repres-bootstrap'
|
|
|
47
47
|
### Render the Script
|
|
48
48
|
The Script partial includes the HTML script tags for Bootstrap and its extensions. Only the [Boot CDN](http://cdn.bootcss.com/) servers are supported.
|
|
49
49
|
|
|
50
|
-
The following code snippet does
|
|
50
|
+
The following code snippet does __not__ load any JavaScript library.
|
|
51
51
|
```erb
|
|
52
52
|
<%= render partial: 'repres/bootstrap/script' %>
|
|
53
53
|
```
|
|
@@ -75,7 +75,7 @@ The following JavaScript libraries are switchable, and the version can be config
|
|
|
75
75
|
### Render the Style
|
|
76
76
|
The Style partial includes the HTML style tags for Bootstrap and its extensions. Only the [Boot CDN](http://cdn.bootcss.com/) servers are supported.
|
|
77
77
|
|
|
78
|
-
The following code snippet does
|
|
78
|
+
The following code snippet does __not__ load any CSS library.
|
|
79
79
|
```erb
|
|
80
80
|
<%= render partial: 'repres/bootstrap/style' %>
|
|
81
81
|
```
|
|
@@ -161,5 +161,5 @@ Here are more options:
|
|
|
161
161
|
- input_prefix: the HTML source codes of input group addon before the form control.
|
|
162
162
|
- input_suffix: the HTML source codes of input group addon after the form control.
|
|
163
163
|
- input_accept: The HTML 5 attribute for the file input tag.
|
|
164
|
-
- input_data:
|
|
164
|
+
- input_data: The HTML 5 Data attribute for the input tag.
|
|
165
165
|
- error_hidden: Determines whether the error message block should be shown if the field has any error.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Repres Bootstrap</title>
|
|
5
|
+
<%= stylesheet_link_tag "repres/bootstrap/application", media: "all" %>
|
|
6
|
+
<%= csrf_meta_tags %>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<%= yield %>
|
|
11
|
+
|
|
12
|
+
<%= javascript_include_tag 'repres/bootstrap/application' %>
|
|
13
|
+
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap/#{library_version(:bootstrap, '3.3.6', options)}/js/bootstrap.min.js" if library_enabled?(:bootstrap, options) %>
|
|
4
4
|
|
|
5
|
-
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-datepicker/#{library_version(:'bootstrap-datepicker', '1.6.
|
|
5
|
+
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-datepicker/#{library_version(:'bootstrap-datepicker', '1.6.1', options)}/js/bootstrap-datepicker.min.js" if library_enabled?(:'bootstrap-datepicker', options) %>
|
|
6
6
|
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-datetimepicker/#{library_version(:'bootstrap-datetimepicker', '4.17.37', options)}/js/bootstrap-datetimepicker.min.js" if library_enabled?(:'bootstrap-datetimepicker', options) %>
|
|
7
7
|
|
|
8
8
|
<% if library_enabled?(:'bootstrap-table', options) %>
|
|
9
|
-
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-table/#{library_version(:'bootstrap-table', '1.
|
|
10
|
-
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-table/#{library_version(:'bootstrap-table', '1.
|
|
9
|
+
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-table/#{library_version(:'bootstrap-table', '1.11.0', options)}/bootstrap-table.min.js" %>
|
|
10
|
+
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-table/#{library_version(:'bootstrap-table', '1.11.0', options)}/locale/bootstrap-table-zh-CN.min.js", charset: 'UTF-8' %>
|
|
11
11
|
<% end %>
|
|
12
12
|
|
|
13
13
|
<% if library_enabled?(:'bootstrap-fileinput', options) %>
|
|
14
|
-
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-fileinput/#{library_version(:'bootstrap-fileinput', '4.3.
|
|
15
|
-
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-fileinput/#{library_version(:'bootstrap-fileinput', '4.3.
|
|
14
|
+
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-fileinput/#{library_version(:'bootstrap-fileinput', '4.3.3', options)}/js/fileinput.min.js" %>
|
|
15
|
+
<%= javascript_include_tag "//cdn.bootcss.com/bootstrap-fileinput/#{library_version(:'bootstrap-fileinput', '4.3.3', options)}/js/fileinput_locale_zh.min.js", charset: 'UTF-8' %>
|
|
16
16
|
<% end %>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap/#{library_version :bootstrap, '3.3.6', options}/css/bootstrap.min.css", media: 'all' if library_enabled?(:bootstrap, options) %>
|
|
4
4
|
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap/#{library_version(:'bootstrap-theme', '3.3.6', options)}/css/bootstrap-theme.min.css", media: 'all' if library_enabled?(:'bootstrap-theme', options) %>
|
|
5
5
|
|
|
6
|
-
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-datepicker/#{library_version(:'bootstrap-datepicker', '1.6.
|
|
6
|
+
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-datepicker/#{library_version(:'bootstrap-datepicker', '1.6.1', options)}/css/bootstrap-datepicker.min.css", media: 'all' if library_enabled?(:'bootstrap-datepicker', options) %>
|
|
7
7
|
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-datetimepicker/#{library_version(:'bootstrap-datetimepicker', '4.17.37', options)}/css/bootstrap-datetimepicker.min.css", media: 'all' if library_enabled?(:'bootstrap-datetimepicker', options) %>
|
|
8
8
|
|
|
9
|
-
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-table/#{library_version(:'bootstrap-table', '1.
|
|
9
|
+
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-table/#{library_version(:'bootstrap-table', '1.11.0', options)}/bootstrap-table.min.css", media: 'all' if library_enabled?(:'bootstrap-table', options) %>
|
|
10
10
|
|
|
11
|
-
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-fileinput/#{library_version(:'bootstrap-fileinput', '4.3.
|
|
11
|
+
<%= stylesheet_link_tag "//cdn.bootcss.com/bootstrap-fileinput/#{library_version(:'bootstrap-fileinput', '4.3.3', options)}/css/fileinput.min.css", media: 'all' if library_enabled?(:'bootstrap-fileinput', options) %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: repres-bootstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Topbit Du
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '4.2'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: repres-hyper_text
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1.0'
|
|
27
41
|
description: Repres (REsource PRESentation) is a series of resource presentation engines.
|
|
28
42
|
The Bootstrap resource presentation engine includes Bootstrap-based resource presentation
|
|
29
43
|
templates & snippets. Repres (资源表现)是一系列的资源表现引擎。Bootstrap 资源表现引擎包括基于Bootstrap的资源表现模版和片段。
|
|
@@ -40,7 +54,7 @@ files:
|
|
|
40
54
|
- app/assets/stylesheets/repres/bootstrap/application.css
|
|
41
55
|
- app/controllers/repres/bootstrap/application_controller.rb
|
|
42
56
|
- app/helpers/repres/bootstrap/application_helper.rb
|
|
43
|
-
- app/views/layouts/
|
|
57
|
+
- app/views/layouts/repres/bootstrap/application.html.erb
|
|
44
58
|
- app/views/repres/bootstrap/_form_field.html.erb
|
|
45
59
|
- app/views/repres/bootstrap/_form_select_box.html.erb
|
|
46
60
|
- app/views/repres/bootstrap/_script.html.erb
|
|
@@ -70,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
84
|
version: '0'
|
|
71
85
|
requirements: []
|
|
72
86
|
rubyforge_project:
|
|
73
|
-
rubygems_version: 2.4
|
|
87
|
+
rubygems_version: 2.6.4
|
|
74
88
|
signing_key:
|
|
75
89
|
specification_version: 4
|
|
76
90
|
summary: Repres Bootstrap Resource Presentation Engine Bootstrap资源表现引擎
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Repres Bootstrap</title>
|
|
5
|
-
<%= stylesheet_link_tag "bootstrap/application", media: "all" %>
|
|
6
|
-
<%= javascript_include_tag "bootstrap/application" %>
|
|
7
|
-
<%= csrf_meta_tags %>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
|
|
11
|
-
<%= yield %>
|
|
12
|
-
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|