beerdb-admin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +5 -0
- data/README.md +7 -1
- data/app/assets/stylesheets/beer_db_admin/button.css.scss +84 -0
- data/app/assets/stylesheets/beer_db_admin/flash.css.scss +50 -0
- data/app/assets/stylesheets/beer_db_admin/navbar.css.scss +129 -0
- data/app/assets/stylesheets/beer_db_admin/settings.css.scss +95 -0
- data/app/controllers/beer_db_admin/countries_controller.rb +2 -1
- data/app/helpers/beer_db_admin/part_helper.rb +5 -0
- data/app/views/beer_db_admin/countries/index.html.erb +17 -42
- data/app/views/beer_db_admin/countries/show.html.erb +2 -2
- data/app/views/beer_db_admin/pages/about.html.erb +8 -2
- data/app/views/beer_db_admin/shared/_countries.html.erb +51 -0
- data/app/views/layouts/beer_db_admin/beer_db_admin.html.erb +23 -5
- data/config/routes.rb +1 -1
- data/lib/beerdb/admin/version.rb +1 -1
- metadata +11 -6
data/Manifest.txt
CHANGED
@@ -4,6 +4,10 @@ README.md
|
|
4
4
|
Rakefile
|
5
5
|
app/assets/javascripts/beer_db_admin/application.js
|
6
6
|
app/assets/stylesheets/beer_db_admin/application.css.scss
|
7
|
+
app/assets/stylesheets/beer_db_admin/button.css.scss
|
8
|
+
app/assets/stylesheets/beer_db_admin/flash.css.scss
|
9
|
+
app/assets/stylesheets/beer_db_admin/navbar.css.scss
|
10
|
+
app/assets/stylesheets/beer_db_admin/settings.css.scss
|
7
11
|
app/controllers/beer_db_admin/beer_db_admin_controller.rb
|
8
12
|
app/controllers/beer_db_admin/beers_controller.rb
|
9
13
|
app/controllers/beer_db_admin/bookmarks_controller.rb
|
@@ -41,6 +45,7 @@ app/views/beer_db_admin/shared/_bookmarks.html.erb
|
|
41
45
|
app/views/beer_db_admin/shared/_breweries_for_country.html.erb
|
42
46
|
app/views/beer_db_admin/shared/_breweries_for_region.html.erb
|
43
47
|
app/views/beer_db_admin/shared/_brewery_tags.html.erb
|
48
|
+
app/views/beer_db_admin/shared/_countries.html.erb
|
44
49
|
app/views/beer_db_admin/shared/_tags.html.erb
|
45
50
|
app/views/beer_db_admin/tags/index.html.erb
|
46
51
|
app/views/beer_db_admin/time/index.html.erb
|
data/README.md
CHANGED
@@ -13,9 +13,14 @@ Open beer web admin addon / rails engine
|
|
13
13
|
Try the `beer.db` web admin demo running
|
14
14
|
on Heroku [`prost.herokuapp.com`](http://prost.herokuapp.com).
|
15
15
|
|
16
|
+
|
16
17
|
## Usage
|
17
18
|
|
18
|
-
|
19
|
+
### Rails
|
20
|
+
|
21
|
+
In your routes (`config/routes.rb`) mount the beer.db.admin app; add the line:
|
22
|
+
|
23
|
+
mount BeerDbAdmin::Server, :at => '/db'
|
19
24
|
|
20
25
|
|
21
26
|
## License
|
@@ -27,3 +32,4 @@ Use it as you please with no restrictions whatsoever.
|
|
27
32
|
|
28
33
|
Send them along to the [Open Beer Database & Friends Forum/Mailing List](http://groups.google.com/group/beerdb).
|
29
34
|
Thanks!
|
35
|
+
|
@@ -0,0 +1,84 @@
|
|
1
|
+
//////////////////////////////////////
|
2
|
+
// button primay (bnt-primary)
|
3
|
+
|
4
|
+
.btn-primary
|
5
|
+
{
|
6
|
+
display: inline-block;
|
7
|
+
padding: 4px 10px 4px;
|
8
|
+
text-align: center;
|
9
|
+
color: $btn-primary-text;
|
10
|
+
@include linear-gradient(top, $btn-primary-gradient-top,
|
11
|
+
$btn-primary-gradient-bottom,
|
12
|
+
$fallback: $btn-primary-gradient-fallback);
|
13
|
+
@include border-radius(4px);
|
14
|
+
cursor: pointer;
|
15
|
+
border: 1px solid $btn-primary-border;
|
16
|
+
white-space: nowrap;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
a {
|
21
|
+
&.btn-primary,
|
22
|
+
&.btn-primary:visited,
|
23
|
+
&.btn-primary:hover
|
24
|
+
{
|
25
|
+
color: $btn-primary-text;
|
26
|
+
text-decoration: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
&.btn-primary:hover
|
30
|
+
{
|
31
|
+
background-color: $btn-primary-hover-background; // note: doesn't work (may be inline w/o background prop??)
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
//////////////////////
|
36
|
+
// button (btn)
|
37
|
+
|
38
|
+
.btn
|
39
|
+
{
|
40
|
+
display: inline-block;
|
41
|
+
padding: 4px 10px 4px;
|
42
|
+
text-align: center;
|
43
|
+
color: $btn-text;
|
44
|
+
@include linear-gradient(top, $btn-gradient-top,
|
45
|
+
$btn-gradient-bottom,
|
46
|
+
$fallback: $btn-gradient-fallback);
|
47
|
+
@include border-radius(4px);
|
48
|
+
cursor: pointer;
|
49
|
+
border: 1px solid $btn-border;
|
50
|
+
white-space: nowrap;
|
51
|
+
}
|
52
|
+
|
53
|
+
a {
|
54
|
+
&.btn,
|
55
|
+
&.btn:visited,
|
56
|
+
&.btn:hover
|
57
|
+
{
|
58
|
+
color: $btn-text;
|
59
|
+
text-decoration: none;
|
60
|
+
}
|
61
|
+
|
62
|
+
&.btn:hover
|
63
|
+
{
|
64
|
+
background-color: $btn-hover-background; // note: doesn't work (may be inline w/o background prop??)
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
/////////////////////
|
69
|
+
// color style classes for test page (use like <span class='color btn-primary-gradient-top'></span>)
|
70
|
+
|
71
|
+
|
72
|
+
.btn-primary-text { background-color: $btn-primary-text; }
|
73
|
+
.btn-primary-hover-background { background-color: $btn-primary-hover-background; }
|
74
|
+
.btn-primary-gradient-top { background-color: $btn-primary-gradient-top; }
|
75
|
+
.btn-primary-gradient-bottom { background-color: $btn-primary-gradient-bottom; }
|
76
|
+
.btn-primary-gradient-fallback { background-color: $btn-primary-gradient-fallback; }
|
77
|
+
.btn-primary-border { background-color: $btn-primary-border; }
|
78
|
+
|
79
|
+
.btn-text { background-color: $btn-text; }
|
80
|
+
.btn-hover-background { background-color: $btn-hover-background; }
|
81
|
+
.btn-gradient-top { background-color: $btn-gradient-top; }
|
82
|
+
.btn-gradient-bottom { background-color: $btn-gradient-bottom; }
|
83
|
+
.btn-gradient-fallback { background-color: $btn-gradient-fallback; }
|
84
|
+
.btn-border { background-color: $btn-border; }
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.flash {
|
2
|
+
padding: 8px 14px; // (1) top,bottom (2) right,left
|
3
|
+
@include border-radius(4px);
|
4
|
+
|
5
|
+
&.error, &.fatal {
|
6
|
+
color: $error-text;
|
7
|
+
background-color: $error-background;
|
8
|
+
border: 1px solid $error-border;
|
9
|
+
}
|
10
|
+
|
11
|
+
&.success {
|
12
|
+
color: $success-text;
|
13
|
+
background-color: $success-background;
|
14
|
+
border: 1px solid $success-border;
|
15
|
+
}
|
16
|
+
|
17
|
+
&.notice, &.info {
|
18
|
+
color: $notice-text;
|
19
|
+
background-color: $notice-background;
|
20
|
+
border: 1px solid $notice-border;
|
21
|
+
}
|
22
|
+
|
23
|
+
&.warn, &.warning {
|
24
|
+
color: $warning-text;
|
25
|
+
background-color: $warning-background;
|
26
|
+
border: 1px solid $warning-border;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
/////////////////////
|
32
|
+
// color style classes for test page (use like <span class='color error-background'></span>)
|
33
|
+
|
34
|
+
// todo: nest inside color (e.g. color { &.error-text {}} ) ???
|
35
|
+
|
36
|
+
.error-text { background-color: $error-text; }
|
37
|
+
.error-background { background-color: $error-background; }
|
38
|
+
.error-border { background-color: $error-border; }
|
39
|
+
|
40
|
+
.success-text { background-color: $success-text; }
|
41
|
+
.success-background { background-color: $success-background; }
|
42
|
+
.success-border { background-color: $success-border; }
|
43
|
+
|
44
|
+
.notice-text { background-color: $notice-text; }
|
45
|
+
.notice-background { background-color: $notice-background; }
|
46
|
+
.notice-border { background-color: $notice-border; }
|
47
|
+
|
48
|
+
.warning-text { background-color: $warning-text; }
|
49
|
+
.warning-background { background-color: $warning-background; }
|
50
|
+
.warning-border { background-color: $warning-border; }
|
@@ -0,0 +1,129 @@
|
|
1
|
+
.navbar {
|
2
|
+
@include linear-gradient(top, $navbar-gradient-top,
|
3
|
+
$navbar-gradient-bottom,
|
4
|
+
$fallback: $navbar-gradient-fallback);
|
5
|
+
|
6
|
+
/* @include linear-gradient(top, blue,
|
7
|
+
navy);
|
8
|
+
*/
|
9
|
+
|
10
|
+
color: $navbar-text;
|
11
|
+
padding: 10px 20px;
|
12
|
+
/* text-align: right; */
|
13
|
+
margin-bottom: 6px;
|
14
|
+
|
15
|
+
a,
|
16
|
+
a:visited {
|
17
|
+
text-decoration: none;
|
18
|
+
color: $navbar-text;
|
19
|
+
}
|
20
|
+
|
21
|
+
a:hover {
|
22
|
+
text-decoration: underline;
|
23
|
+
color: $navbar-text;
|
24
|
+
}
|
25
|
+
|
26
|
+
.signin, .signin *,
|
27
|
+
.signout, .signout * {
|
28
|
+
font-size: $base-font-size*0.80;
|
29
|
+
}
|
30
|
+
|
31
|
+
.logo {
|
32
|
+
a,a:visited,a:hover {
|
33
|
+
text-decoration: none;
|
34
|
+
color: $navbar-text;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
$admin-navbar-gradient-top: red;
|
41
|
+
$admin-navbar-gradient-bottom: maroon;
|
42
|
+
$admin-navbar-text: white;
|
43
|
+
|
44
|
+
.admin.navbar {
|
45
|
+
@include linear-gradient(top, $admin-navbar-gradient-top, $admin-navbar-gradient-bottom);
|
46
|
+
|
47
|
+
/* @include linear-gradient(top, blue,
|
48
|
+
navy);
|
49
|
+
*/
|
50
|
+
|
51
|
+
color: $admin-navbar-text;
|
52
|
+
padding: 10px 20px;
|
53
|
+
/* text-align: right; */
|
54
|
+
margin-bottom: 6px;
|
55
|
+
|
56
|
+
a,
|
57
|
+
a:visited {
|
58
|
+
text-decoration: none;
|
59
|
+
color: $admin-navbar-text;
|
60
|
+
}
|
61
|
+
|
62
|
+
a:hover {
|
63
|
+
text-decoration: underline;
|
64
|
+
color: $admin-navbar-text;
|
65
|
+
}
|
66
|
+
|
67
|
+
.signin, .signin *,
|
68
|
+
.signout, .signout * {
|
69
|
+
font-size: $base-font-size*0.80;
|
70
|
+
}
|
71
|
+
|
72
|
+
.logo {
|
73
|
+
a,a:visited,a:hover {
|
74
|
+
text-decoration: none;
|
75
|
+
color: $admin-navbar-text;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
|
81
|
+
$db-navbar-gradient-top: lime;
|
82
|
+
$db-navbar-gradient-bottom: green;
|
83
|
+
$db-navbar-text: white;
|
84
|
+
|
85
|
+
.db.navbar {
|
86
|
+
@include linear-gradient(top, $db-navbar-gradient-top, $db-navbar-gradient-bottom);
|
87
|
+
|
88
|
+
/* @include linear-gradient(top, blue,
|
89
|
+
navy);
|
90
|
+
*/
|
91
|
+
|
92
|
+
color: $db-navbar-text;
|
93
|
+
padding: 10px 20px;
|
94
|
+
/* text-align: right; */
|
95
|
+
margin-bottom: 6px;
|
96
|
+
|
97
|
+
a,
|
98
|
+
a:visited {
|
99
|
+
text-decoration: none;
|
100
|
+
color: $db-navbar-text;
|
101
|
+
}
|
102
|
+
|
103
|
+
a:hover {
|
104
|
+
text-decoration: underline;
|
105
|
+
color: $db-navbar-text;
|
106
|
+
}
|
107
|
+
|
108
|
+
.signin, .signin *,
|
109
|
+
.signout, .signout * {
|
110
|
+
font-size: $base-font-size*0.80;
|
111
|
+
}
|
112
|
+
|
113
|
+
.logo {
|
114
|
+
a,a:visited,a:hover {
|
115
|
+
text-decoration: none;
|
116
|
+
color: $db-navbar-text;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
/////////////////////
|
124
|
+
// color style classes for test page (use like <span class='color navbar-gradient-top'></span>)
|
125
|
+
|
126
|
+
.navbar-text { background-color: $navbar-text; }
|
127
|
+
.navbar-gradient-top { background-color: $navbar-gradient-top; }
|
128
|
+
.navbar-gradient-bottom { background-color: $navbar-gradient-bottom; }
|
129
|
+
.navbar-gradient-fallback { background-color: $navbar-gradient-fallback; }
|
@@ -0,0 +1,95 @@
|
|
1
|
+
/////////////////////////////////////
|
2
|
+
// global settings w/ variables
|
3
|
+
//
|
4
|
+
// note: for web colors see en.wikipedia.org/wiki/Web_colors
|
5
|
+
|
6
|
+
|
7
|
+
$base-font-size: 18px; // was 20px
|
8
|
+
$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
9
|
+
|
10
|
+
|
11
|
+
///////////////////////
|
12
|
+
// navbar
|
13
|
+
|
14
|
+
$navbar-text: white;
|
15
|
+
$navbar-gradient-top: #333;
|
16
|
+
$navbar-gradient-bottom: #222;
|
17
|
+
$navbar-gradient-fallback: #2C2C2C;
|
18
|
+
|
19
|
+
|
20
|
+
//////////////////////////
|
21
|
+
// breadcrumb
|
22
|
+
|
23
|
+
// todo: fix breadcrumb - use gradient colors (see bootstrap)
|
24
|
+
// $breadcrumbText:
|
25
|
+
$breadcrumb-background: lightgrey;
|
26
|
+
$breadcrumb-border: silver;
|
27
|
+
|
28
|
+
|
29
|
+
//////////////////////////
|
30
|
+
// buttons
|
31
|
+
|
32
|
+
// todo: use bootstrap variable names for btn and btn-primary?
|
33
|
+
|
34
|
+
$btn-primary-text: white;
|
35
|
+
$btn-primary-hover-background: #04C;
|
36
|
+
$btn-primary-gradient-top: #08C;
|
37
|
+
$btn-primary-gradient-bottom: #04C;
|
38
|
+
$btn-primary-gradient-fallback: #04C;
|
39
|
+
$btn-primary-border: rgba(0, 0, 0, 0.1);
|
40
|
+
|
41
|
+
$btn-text: #333;
|
42
|
+
$btn-hover-background: #E6E6E6;
|
43
|
+
$btn-gradient-top: white;
|
44
|
+
$btn-gradient-bottom: #E6E6E6;
|
45
|
+
$btn-gradient-fallback: #E6E6E6;
|
46
|
+
$btn-border: rgba(0, 0, 0, 0.1);
|
47
|
+
|
48
|
+
|
49
|
+
///////////////////////
|
50
|
+
// misc
|
51
|
+
|
52
|
+
$highlight-me-background: yellow;
|
53
|
+
|
54
|
+
$focus-background: #F8F50F;
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
//////////////////////////////////////////
|
59
|
+
// bingo tip colors
|
60
|
+
|
61
|
+
$bingo-text: white;
|
62
|
+
$bingo-background: green;
|
63
|
+
|
64
|
+
$bingoo-text: white;
|
65
|
+
$bingoo-background: limegreen; // springgreen?? -- lighter green
|
66
|
+
|
67
|
+
$bingooo-text: white;
|
68
|
+
$bingooo-background: lime; // lighter lighter green
|
69
|
+
|
70
|
+
$missing-text: white;
|
71
|
+
$missing-background: orange; // tip missing label
|
72
|
+
|
73
|
+
$fail-text: white;
|
74
|
+
$fail-background: red;
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
////////////////////////////////////
|
79
|
+
// flash messages colors
|
80
|
+
|
81
|
+
$error-text: #B94A48;
|
82
|
+
$error-background: #F2DEDE;
|
83
|
+
$error-border: #EED3D7;
|
84
|
+
|
85
|
+
$success-text: #468847;
|
86
|
+
$success-background: #DFF0D8;
|
87
|
+
$success-border: #D6E9C6;
|
88
|
+
|
89
|
+
$notice-text: #3A87AD;
|
90
|
+
$notice-background: #D9EDF7;
|
91
|
+
$notice-border: #BCE8F1;
|
92
|
+
|
93
|
+
$warning-text: #C09853;
|
94
|
+
$warning-background: #FCF8E3;
|
95
|
+
$warning-border: #FBEED5;
|
@@ -3,6 +3,11 @@
|
|
3
3
|
module BeerDbAdmin
|
4
4
|
module PartHelper
|
5
5
|
|
6
|
+
def render_countries( countries, opts={} )
|
7
|
+
render partial: 'beer_db_admin/shared/countries',
|
8
|
+
locals: { countries: countries }
|
9
|
+
end
|
10
|
+
|
6
11
|
def render_bookmarks( bookmarks, opts={} )
|
7
12
|
|
8
13
|
render partial: 'beer_db_admin/shared/bookmarks',
|
@@ -1,49 +1,24 @@
|
|
1
1
|
|
2
2
|
<h3>Countries</h3>
|
3
3
|
|
4
|
-
<
|
5
|
-
<%
|
6
|
-
|
7
|
-
|
4
|
+
<p>
|
5
|
+
<% Continent.all.each_with_index do |continent,i| %>
|
6
|
+
<% if i > 0 %>
|
7
|
+
•
|
8
|
+
<% end %>
|
9
|
+
<%= link_to continent.title, "##{continent.key}" %>
|
10
|
+
<% end %>
|
11
|
+
</p>
|
8
12
|
|
9
|
-
<% count = country.beers.count
|
10
|
-
if count > 0 %>
|
11
|
-
<tr>
|
12
|
-
<td>
|
13
|
-
<span class='country-key'><%= country.key %></span>
|
14
|
-
<%= image_tag_for_country( country ) %>
|
15
|
-
<%= link_to country.title, short_country_path( country ) %>
|
16
|
-
</td>
|
17
|
-
</tr>
|
18
13
|
|
19
|
-
|
20
|
-
<td>
|
21
|
-
<% country.beers.each_with_index do |beer,i| %>
|
22
|
-
<% if i > 0 %>
|
23
|
-
•
|
24
|
-
<% end %>
|
25
|
-
<%= link_to beer.title, beer_path( beer.id ) %>
|
26
|
-
<% end %>
|
27
|
-
<span class="beer-count">(<%= count %>)</span>
|
28
|
-
</td>
|
29
|
-
</tr>
|
14
|
+
<% Continent.all.each do |continent| %>
|
30
15
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
<% country.breweries.each_with_index do |brewery,i| %>
|
36
|
-
<% if i > 0 %>
|
37
|
-
•
|
38
|
-
<% end %>
|
39
|
-
<%= brewery.title %>
|
40
|
-
<% end %>
|
41
|
-
<span class="beer-count">(<%= breweries_count %>)</span>
|
42
|
-
</td>
|
43
|
-
</tr>
|
44
|
-
<% end %>
|
16
|
+
<a name="<%= continent.key %>"></a>
|
17
|
+
<h4>
|
18
|
+
<%= continent.title %>
|
19
|
+
</h4>
|
45
20
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
21
|
+
<p>
|
22
|
+
<%= render_countries( continent.countries.order(:title) ) %>
|
23
|
+
</p>
|
24
|
+
<% end %><!-- each continent-->
|
@@ -0,0 +1,51 @@
|
|
1
|
+
|
2
|
+
<% countries.each do |country| %>
|
3
|
+
|
4
|
+
<% beers_count = country.beers.count
|
5
|
+
breweries_count = country.breweries.count %>
|
6
|
+
|
7
|
+
<% if beers_count > 0 || breweries_count > 0 %>
|
8
|
+
<div>
|
9
|
+
<span class='country-key'><%= country.key %></span>
|
10
|
+
<%= image_tag_for_country( country ) %>
|
11
|
+
<%= link_to country.title, short_country_path( country ) %>
|
12
|
+
(<%= country.code %>)
|
13
|
+
|
14
|
+
<span class='country-key'>
|
15
|
+
-
|
16
|
+
<%= beers_count %> Beers,
|
17
|
+
<%= breweries_count %> Breweries
|
18
|
+
</span>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
21
|
+
|
22
|
+
|
23
|
+
<!-- fix: move to beer partial or similar;
|
24
|
+
not use now, thaus > 10000 -->
|
25
|
+
<% if beers_count > 10000 %>
|
26
|
+
<div>
|
27
|
+
<% country.beers.each_with_index do |beer,i| %>
|
28
|
+
<% if i > 0 %>
|
29
|
+
•
|
30
|
+
<% end %>
|
31
|
+
<%= link_to beer.title, beer_path( beer.id ) %>
|
32
|
+
<% end %>
|
33
|
+
<span class="beer-count">(<%= beers_count %>)</span>
|
34
|
+
</div>
|
35
|
+
<% end %><!-- if beers_count > 0 -->
|
36
|
+
|
37
|
+
|
38
|
+
<% if breweries_count > 10000 %>
|
39
|
+
<div>
|
40
|
+
<% country.breweries.each_with_index do |brewery,i| %>
|
41
|
+
<% if i > 0 %>
|
42
|
+
•
|
43
|
+
<% end %>
|
44
|
+
<%= brewery.title %>
|
45
|
+
<% end %>
|
46
|
+
<span class="beer-count">(<%= breweries_count %>)</span>
|
47
|
+
</div>
|
48
|
+
<% end %><!-- if breweries_count > 0 -->
|
49
|
+
|
50
|
+
<% end %><!-- each country -->
|
51
|
+
|
@@ -14,7 +14,18 @@
|
|
14
14
|
<tr>
|
15
15
|
<!-- left -->
|
16
16
|
<td>
|
17
|
-
<span class='logo'
|
17
|
+
<span class='logo'>
|
18
|
+
|
19
|
+
<%#= link_to '[Logo]', beers_path() %>
|
20
|
+
open public domain data | beer.db -
|
21
|
+
<%= Beer.count %> beers,
|
22
|
+
<%= Brand.count %> brands,
|
23
|
+
<%= Brewery.count %> breweries
|
24
|
+
in
|
25
|
+
65 countries
|
26
|
+
|
27
|
+
</span>
|
28
|
+
|
18
29
|
<% if content_for? :breadcrumb %>
|
19
30
|
<span class='breadcrumb-inline'>
|
20
31
|
<%= yield :breadcrumb %>
|
@@ -46,17 +57,24 @@
|
|
46
57
|
<% end %>
|
47
58
|
|
48
59
|
<%= link_to 'Countries', countries_path() %> •
|
49
|
-
|
60
|
+
<!--
|
61
|
+
<%= link_to 'Regions', regions_path() %> •
|
62
|
+
-->
|
50
63
|
<%= link_to 'Beers', beers_path() %> •
|
51
64
|
<%= link_to 'Brands', brands_path() %> •
|
52
65
|
<%= link_to 'Breweries', breweries_path() %> •
|
53
66
|
<%= link_to 'Tags', tags_path() %> •
|
54
|
-
<%= link_to 'Timeline', time_path() %>
|
55
|
-
|
67
|
+
<%= link_to 'Timeline', time_path() %> •
|
68
|
+
<%= link_to 'About', about_path() %>
|
56
69
|
.::.
|
57
70
|
|
58
71
|
<!-- fix: use named url_helper for /api -->
|
59
|
-
<%= link_to "Web Service
|
72
|
+
<%= link_to "Web Service / HTTP JSON API", '/api' %>
|
73
|
+
|
74
|
+
.::.
|
75
|
+
|
76
|
+
<%= link_to 'Update Data (Edit Me!)', 'https://github.com/openbeer/world' %>
|
77
|
+
|
60
78
|
</p>
|
61
79
|
|
62
80
|
<% end %>
|
data/config/routes.rb
CHANGED
data/lib/beerdb/admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beerdb-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: &
|
16
|
+
requirement: &20976972 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '4.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20976972
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
27
|
-
requirement: &
|
27
|
+
requirement: &20976624 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '3.7'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *20976624
|
36
36
|
description: beerdb admin addon - rails engine
|
37
37
|
email: beerdb@googlegroups.com
|
38
38
|
executables: []
|
@@ -48,6 +48,10 @@ files:
|
|
48
48
|
- Rakefile
|
49
49
|
- app/assets/javascripts/beer_db_admin/application.js
|
50
50
|
- app/assets/stylesheets/beer_db_admin/application.css.scss
|
51
|
+
- app/assets/stylesheets/beer_db_admin/button.css.scss
|
52
|
+
- app/assets/stylesheets/beer_db_admin/flash.css.scss
|
53
|
+
- app/assets/stylesheets/beer_db_admin/navbar.css.scss
|
54
|
+
- app/assets/stylesheets/beer_db_admin/settings.css.scss
|
51
55
|
- app/controllers/beer_db_admin/beer_db_admin_controller.rb
|
52
56
|
- app/controllers/beer_db_admin/beers_controller.rb
|
53
57
|
- app/controllers/beer_db_admin/bookmarks_controller.rb
|
@@ -85,6 +89,7 @@ files:
|
|
85
89
|
- app/views/beer_db_admin/shared/_breweries_for_country.html.erb
|
86
90
|
- app/views/beer_db_admin/shared/_breweries_for_region.html.erb
|
87
91
|
- app/views/beer_db_admin/shared/_brewery_tags.html.erb
|
92
|
+
- app/views/beer_db_admin/shared/_countries.html.erb
|
88
93
|
- app/views/beer_db_admin/shared/_tags.html.erb
|
89
94
|
- app/views/beer_db_admin/tags/index.html.erb
|
90
95
|
- app/views/beer_db_admin/time/index.html.erb
|