beerdb-admin 0.0.1 → 0.1.0

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.
@@ -1,3 +1,91 @@
1
1
 
2
- // add some css here
2
+ @import "bourbon"; // 3rd party css mixin library (see http://thoughtbot.com/bourbon)
3
3
 
4
+ @import "settings"; // global color settings w/ scss variables
5
+
6
+ @import "flash";
7
+ @import "button";
8
+ @import "navbar";
9
+
10
+
11
+ // $base-font-size: 18px; // was 20px
12
+
13
+ $base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
14
+
15
+
16
+ $dark-gray: #333333;
17
+ $azure: #F0FFFF; // azure (see wikipedia web colors)
18
+
19
+
20
+ body
21
+ {
22
+ font-family: $base-font-family;
23
+ margin: 0;
24
+ }
25
+
26
+
27
+
28
+ a {
29
+ color: black;
30
+ text-decoration: none;
31
+
32
+ &:hover {
33
+ color: black;
34
+ background-color: aqua;
35
+ text-decoration: underline;
36
+ }
37
+
38
+ &:visited { color: black; }
39
+ }
40
+
41
+
42
+ .team-count,
43
+ .city-count,
44
+ .beer-count,
45
+ .country-key,
46
+ .brewery-key,
47
+ .region-key,
48
+ .tags {
49
+ color: $dark-gray;
50
+ font-size: 12px; // ~80%
51
+ }
52
+
53
+ table {
54
+ td.beer-key,
55
+ td.city-key,
56
+ td.country-key,
57
+ td.region-key {
58
+ color: $dark-gray;
59
+ font-size: 12px; // ~80%
60
+ * {
61
+ color: $dark-gray;
62
+ font-size: 12px; // ~80%
63
+ }
64
+ }
65
+ }
66
+
67
+ .drink-rating {
68
+ font-size: 40px;
69
+ }
70
+
71
+ .drink-comments,
72
+ .drink-place {
73
+ color: $dark-gray;
74
+ font-size: 12px; // ~80%
75
+ }
76
+
77
+
78
+ /////////////////////////
79
+ // version / powered_by
80
+
81
+ .version
82
+ {
83
+ text-align: center;
84
+ margin-top: 10px;
85
+ color: grey;
86
+
87
+ a, span {
88
+ font-size: 12px;
89
+ color: grey
90
+ }
91
+ }
@@ -32,7 +32,8 @@ module ApplicationHelper
32
32
  content_tag :div do
33
33
  link_to( 'Questions? Comments?', 'http://groups.google.com/group/beerdb' ) + " | " +
34
34
  link_to( "world.db/#{WorldDb::VERSION}", 'https://github.com/geraldb/world.db.ruby' ) + ', ' +
35
- link_to( "beer.db/#{BeerDb::VERSION}", 'https://github.com/geraldb/beer.db.ruby' ) + ' - ' +
35
+ link_to( "beer.db/#{BeerDb::VERSION}", 'https://github.com/geraldb/beer.db.ruby' ) + ', ' +
36
+ link_to( "beer.db.admin/#{BeerDbAdmin::VERSION}", 'https://github.com/geraldb/beer.db.admin' ) + ' - ' +
36
37
  content_tag( :span, "Ruby/#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}/#{RUBY_PLATFORM}) on") + ' ' +
37
38
  content_tag( :span, "Rails/#{Rails.version} (#{Rails.env})" ) + " | " +
38
39
  link_to( 'Icon Drawer Flags', 'http://www.icondrawer.com' )
@@ -40,6 +41,7 @@ module ApplicationHelper
40
41
  end
41
42
  end
42
43
 
44
+
43
45
  def image_tag_for_country( country, opts={} )
44
46
  if opts[:size] == 'large' || opts[:size] == '64x64'
45
47
  image_tag "flags/64x64/#{country.key}.png"
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <!-- check/fix: needs beer_db_admin reference ?? -->
5
- <%= render partial: 'layouts/header' %>
5
+ <%= render partial: 'layouts/beer_db_admin/header' %>
6
6
  </head>
7
7
  <body>
8
8
 
@@ -65,7 +65,7 @@
65
65
 
66
66
  <div class='content' style='padding: 0px 20px 0px 20px;'>
67
67
 
68
- <%= render partial: 'layouts/flash', locals: { flash: flash } %>
68
+ <%= render partial: 'layouts/beer_db_admin/flash', locals: { flash: flash } %>
69
69
 
70
70
  <%= yield %>
71
71
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module BeerDbAdmin
3
- VERSION = '0.0.1'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
 
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.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2014-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &21260196 !ruby/object:Gem::Requirement
16
+ requirement: &22378212 !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: *21260196
24
+ version_requirements: *22378212
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &21259812 !ruby/object:Gem::Requirement
27
+ requirement: &22377900 !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: *21259812
35
+ version_requirements: *22377900
36
36
  description: beerdb admin addon - rails engine
37
37
  email: beerdb@googlegroups.com
38
38
  executables: []