mountain-goat 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- class CreateMetricTrackingTables < ActiveRecord::Migration
1
+ class CreateMountainGoatTables < ActiveRecord::Migration
2
2
 
3
3
  def self.up
4
4
  create_table "ci_metas", :force => true do |t|
@@ -35,4 +35,31 @@ class MountainGoatRalliesController < MountainGoatController
35
35
  end
36
36
 
37
37
  end
38
+
39
+ def show
40
+ @rally = Rally.find(params[:id])
41
+ end
42
+
43
+ def new
44
+ if params[:convert_id]
45
+ @rally = Rally.new(:convert_id => params[:convert_id])
46
+ else
47
+ @rally = Rally.new
48
+ end
49
+
50
+ end
51
+
52
+ def create
53
+
54
+ end
55
+
56
+ def edit
57
+ @rally = Rally.find(params[:id])
58
+ end
59
+
60
+ def update
61
+
62
+ end
63
+
64
+
38
65
  end
@@ -219,13 +219,16 @@ form input[type='submit'] {
219
219
  .button, input[type="submit"] {
220
220
  display: block;
221
221
  color: white;
222
- width: 170px;
222
+ !width: 170px;
223
223
  font-size: 20px;
224
224
  box-shadow: 0px 0px 3px rgba(222,222,222,0.2) inset;
225
225
  margin-right: 6px;
226
226
  background-color: red;
227
227
  padding-left: 10px;
228
228
  padding-top: 10px;
229
+ padding-right: 10px;
230
+ min-width: 70px;
231
+ text-align:center;
229
232
  border-radius: 5px;
230
233
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
231
234
  text-shadow: 0 0 4px #333333;
@@ -404,3 +407,23 @@ input[type="checkbox"] + label {
404
407
  margin: 0 auto;
405
408
  padding-right: 200px;
406
409
  }
410
+
411
+ a.reload {
412
+ color: black;
413
+ }
414
+
415
+ ul.rally-list li.rally {
416
+ list-style: none outside none;
417
+ width: 60%;
418
+ !box-shadow: 0px 0px 3px rgba(222,222,222,0.2) inset;
419
+ margin-right: -1px;
420
+ margin-bottom: 10px;
421
+ background-color: rgba(200, 20, 20, 0.7);
422
+ padding: 4px;
423
+ color: white;
424
+ }
425
+
426
+ ul.rally-list li.rally .time {
427
+ float: right;
428
+ margin-top: -20px;
429
+ }
@@ -30,7 +30,8 @@
30
30
  console.log('No new events');
31
31
  } else {
32
32
  $('.recent-rally').data('rally-id', json.recent_rally_id);
33
- $('.rally-list').prepend($(json.result));
33
+ res = $(json.result);
34
+ res.hide().prependTo($('.rally-list')).fadeIn(3000);
34
35
  $('ul.rally-list > li.rally:gt(100)').remove(); //only show 100 elements
35
36
 
36
37
  if ($('.rally-list abbr.time-ago').size() > 0) {
@@ -1,3 +1,3 @@
1
1
  class MountainGoat
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  <div id="container-main" class="mt-converts">
4
3
  <div class="mountain-goat-panel centered">
5
4
 
@@ -1,8 +1,4 @@
1
1
 
2
- <% if !respond_to?(:chart) %>
3
- <% def chart(*args); 'Please install Flotilla plugin (http://flotilla.rubyforge.org/) for charts'; end; %>
4
- <% end %>
5
-
6
2
  <div id="container-main" class="mt-converts show">
7
3
  <div class="mountain-goat-panel centered">
8
4
  <ul class="nav">
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  <div id="container-main" class="mt-metric-variants">
4
3
  <div class="mountain-goat-panel cenetered">
5
4
  <h1>Listing Metric Variants</h1>
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  <div id="container-main" class="mt-metric-variants">
4
3
  <div class="mountain-goat-panel cenetered">
5
4
  <ul class="nav">
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  <div id="container-main" class="mt-metrics">
4
3
  <div class="mountain-goat-panel">
5
4
  <h1>All metrics</h1>
@@ -1,8 +1,4 @@
1
1
 
2
- <% if !respond_to?(:chart) %>
3
- <% def chart(*args); 'Please install Flotilla plugin (http://flotilla.rubyforge.org/) for charts'; end; %>
4
- <% end %>
5
-
6
2
  <div id="container-main" class="mt-metrics">
7
3
  <div class="mountain-goat-panel cenetered">
8
4
  <ul class="nav">
@@ -0,0 +1,12 @@
1
+ <%# locals => rally %>
2
+
3
+ <li class="rally" data-rally-id="<%= rally.id %>"><span class="name"><%= rally.convert.name %></span>
4
+ <ul>
5
+ <% rally.all_metas.each do |k,v| %>
6
+ <% if !v.blank? %>
7
+ <li><%= k %>: <%= v %></li>
8
+ <% end %>
9
+ <% end %>
10
+ </ul>
11
+ <span class="time"><%= content_tag(:abbr, rally.created_at.to_s, :title => rally.created_at.getutc.iso8601, :class => "time-ago") %></span>
12
+ </li>
@@ -0,0 +1,21 @@
1
+ <%# locals => f %>
2
+
3
+ <% if f.object.new_record? %>
4
+ <div class="item metric-type">
5
+ <%= f.label :convert_type, 'Type (this is technical)' %>
6
+ <%= f.text_field :convert_type %>
7
+ </div>
8
+ <% else %>
9
+ <%= f.hidden_field(:convert_id) %>
10
+ <h2><%= f.object.convert.name %></h2>
11
+ <span class="item created_at">
12
+ <%= f.label :created_at %>
13
+ <%= f.text_field :created_at %>
14
+ </span>
15
+ <% end %>
16
+
17
+ <%# TODO: Metas %>
18
+
19
+ <div class="item submit">
20
+ <%= f.submit 'Submit' %>
21
+ </div>
@@ -0,0 +1,13 @@
1
+
2
+ <div id="container-main" class="mt-rallies">
3
+ <div class="mountain-goat-panel cenetered">
4
+ <h2>Edit rally</h2>
5
+
6
+ <% form_for :rally, @rally, :url => mountain_goat_rallies_url do |f| %>
7
+ <%= f.error_messages %>
8
+
9
+ <%= render :partial => 'mountain_goat_rallies/rallies_form', :locals => { :f => f } %>
10
+ <% end %>
11
+
12
+ </div>
13
+ </div>
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  <div id="container-main" class="mt-rallies">
4
3
  <div class="mountain-goat-panel">
5
4
  <h1>Rallies <% if @convert %>for <%=h @convert.name %><% else %>for all Goals<% end %></h1>
@@ -0,0 +1,13 @@
1
+
2
+ <div id="container-main" class="mt-rallies">
3
+ <div class="mountain-goat-panel cenetered">
4
+ <h2>New rally</h2>
5
+
6
+ <% form_for :rally, @rally, :url => mountain_goat_rallies_url do |f| %>
7
+ <%= f.error_messages %>
8
+
9
+ <%= render :partial => 'mountain_goat_rallies/rallies_form', :locals => { :f => f } %>
10
+ <% end %>
11
+
12
+ </div>
13
+ </div>
@@ -0,0 +1,14 @@
1
+
2
+ <div id="container-main" class="mt-rallies">
3
+ <div class="mountain-goat-panel cenetered">
4
+ <h2>Rally for <%=h @rally.convert.name %></h2>
5
+
6
+ <div class="rally">
7
+ <span class="occured"><%= @rally.created_at.to_s %></span>
8
+ </div>
9
+
10
+ <div class="actions">
11
+ <a class="button" href="<%= edit_mountain_goat_rally_url @rally.id %>">Edit</a>
12
+ </div>
13
+ </div>
14
+ </div>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mountain-goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoffrey Hayes
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-07-18 00:00:00 -05:00
19
+ date: 2011-07-22 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -119,9 +119,14 @@ files:
119
119
  - lib/mountain-goat/views/mountain_goat/mountain_goat_metrics/index.html.erb
120
120
  - lib/mountain-goat/views/mountain_goat/mountain_goat_metrics/new.html.erb
121
121
  - lib/mountain-goat/views/mountain_goat/mountain_goat_metrics/show.html.erb
122
+ - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp__rally.html.erb.46831~
122
123
  - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/_rallies.html.erb
124
+ - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/_rallies_form.html.erb
123
125
  - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/_rally.html.erb
126
+ - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/edit.html.erb
124
127
  - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/index.html.erb
128
+ - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/new.html.erb
129
+ - lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/show.html.erb
125
130
  - mountain-goat.gemspec
126
131
  - test/fixtures/ci_metas.yml
127
132
  - test/fixtures/convert_meta_types.yml