tmin 0.1.7 → 0.1.8

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tmin (0.1.6)
4
+ tmin (0.1.7)
5
5
  dm-aggregates (~> 1.2.0)
6
6
  dm-core (~> 1.2.0)
7
7
  dm-migrations (~> 1.2.0)
data/lib/tmin/server.rb CHANGED
@@ -197,7 +197,7 @@ module Firefly
197
197
  @urls = Firefly::Url.all(:limit => config[:recent_urls], :order => [ sort_column.to_sym.send(sort_order.to_sym) ] )
198
198
 
199
199
 
200
- haml :admin
200
+ haml :admin, :layout => :admin_layout
201
201
  end
202
202
  end
203
203
 
data/lib/tmin/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Tminus
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
data/public/bootstrap.css CHANGED
@@ -9,10 +9,29 @@
9
9
 
10
10
  .well {
11
11
  margin-top: 20px;
12
- background-color: rgba(245, 245, 245, 0.4);
12
+ background-color: rgba(245, 245, 245, 0.6);
13
13
  }
14
14
 
15
15
 
16
16
  .spacer {
17
17
  margin-top: 20px;
18
+ }
19
+
20
+
21
+ #bg {
22
+ position: fixed;
23
+ top: 0;
24
+ left: 0;
25
+
26
+ /* Preserve aspet ratio */
27
+ min-width: 100%;
28
+ min-height: 100%;
29
+ }
30
+
31
+ h1{
32
+ font-size: 168px;
33
+ }
34
+
35
+ h2 {
36
+ font-size: 68px;
18
37
  }
@@ -0,0 +1,28 @@
1
+ !!!
2
+ %html{:lang => "en"}
3
+ %head
4
+ %title
5
+ %meta(charset="UTF-8")
6
+
7
+ %link{ :rel=> "Shortcut Icon", :href=> u('favicon.ico') }
8
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
9
+ %link{ :rel => "stylesheet", :href => u('bootstrap.css') }
10
+ %script{ :type => "text/javascript", :src => u('jquery-1.4.2.min.js') }
11
+
12
+
13
+ :javascript
14
+ var _gaq = _gaq || [];
15
+ _gaq.push(['_setAccount', 'UA-30261711-1']);
16
+ _gaq.push(['_trackPageview']);
17
+
18
+ (function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
19
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
20
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
21
+ })();
22
+ %body
23
+
24
+ .container
25
+ .row
26
+ .col-sm-8
27
+ = yield
28
+
data/views/layout.haml CHANGED
@@ -3,6 +3,7 @@
3
3
  %head
4
4
  %title
5
5
  %meta(charset="UTF-8")
6
+ <meta name="apple-itunes-app" content="app-id=507726329, app-argument=#{@url.url}"/>
6
7
  %link{ :rel=> "Shortcut Icon", :href=> u('favicon.ico') }
7
8
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
8
9
  %link{ :rel => "stylesheet", :href => u('bootstrap.css') }
@@ -19,13 +20,20 @@
19
20
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
20
21
  })();
21
22
  %body
23
+
24
+
25
+ -unless @time[5].length < 10 == false
26
+ <img src="/images/#{@time[5]}-568h@2x.jpg" id="bg" alt="">
22
27
  .container
23
28
  .row
24
- .col-lg-12
25
- %h1= @title
26
-
29
+ .col-sm-12
30
+ .well.spacer
31
+ = yield
32
+ -unless @time[5].length > 10 == false
33
+ <img src="http://s3.amazonaws.com/medows/images/#{@time[5]}" id="bg" alt="">
34
+ .container
27
35
  .row
28
- .col-sm-6.background
36
+ .col-sm-12
29
37
  .well.spacer
30
38
  = yield
31
39
 
data/views/redirect.haml CHANGED
@@ -1,33 +1,23 @@
1
1
 
2
2
 
3
3
 
4
- -unless @time[5].length < 10 == false
5
-
6
- :css
7
- .background{
8
- background-image: url('/images/#{@time[5]}-568h@2x.jpg');
9
- height: 900px;
10
- background-repeat: no-repeat;
11
- }
12
-
13
- -unless @time[5].length > 10 == false
14
- :css
15
- .background{
16
- background-image: url('http://s3.amazonaws.com/medows/images/#{@time[5]}');
17
- height: 900px;
18
- background-repeat: no-repeat;
19
- }
20
4
 
21
5
 
22
6
  -##{@url.url}
23
7
 
24
8
  -#<a id="applink1" href="#{@url.url}">Opening the awesome event now!</a>
25
- %h1
9
+ %h1.text-center
26
10
  #countdown
27
- %h3
28
- until:
11
+ %h2.text-center
12
+ until
13
+ %h2.text-center
29
14
  = URI.unescape(@time[8])
30
- %h3 Event Date: #{@time[4].gsub!('~',' ')}
15
+ %hr
16
+ %h3.lead
17
+ %strong Event Details:
18
+ Event Date: #{@time[4].gsub!('~',' ')}
19
+ Alarm: Yes
20
+
31
21
 
32
22
 
33
23
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - drobs
@@ -297,6 +297,7 @@ files:
297
297
  - test/test_tmin.rb
298
298
  - tmin.gemspec
299
299
  - views/admin.haml
300
+ - views/admin_layout.haml
300
301
  - views/ec.haml
301
302
  - views/error.haml
302
303
  - views/index.haml