metry 2.0.4 → 2.0.5
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/History.txt +4 -0
- data/Manifest.txt +2 -0
- data/lib/metry.rb +1 -1
- data/lib/metry/psycho/edit_goal.erb +9 -0
- data/lib/metry/psycho/goal.erb +9 -0
- metadata +3 -1
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/metry.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
<h1>Edit Goal</h1>
|
2
|
+
|
3
|
+
<form action="<%= url "/goals/#{@goal.id}" %>" method="post">
|
4
|
+
<fieldset>
|
5
|
+
<p><label for="name">Name</label> <input type="text" name="name" value="<%= @goal.name %>"/></p>
|
6
|
+
<p><label for="path">Path</label> <input type="text" name="path" value="<%= @goal.path %>"/></p>
|
7
|
+
<p><input type="submit" value="Save" /></p>
|
8
|
+
</fieldset>
|
9
|
+
</form>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<h1>Goal <%= @goal.name %></h1>
|
2
|
+
|
3
|
+
<p>Path: <%=h @goal.path %></p>
|
4
|
+
<p><a href="<%= url "/goals/#{@goal.id}/edit" %>">Edit</a></p>
|
5
|
+
<ol>
|
6
|
+
<% @goal.visitors.each do |visitor| %>
|
7
|
+
<li><a href="<%= url "/visitors/#{visitor.id}" %>">Visitor <%= visitor.id %></a></li>
|
8
|
+
<% end %>
|
9
|
+
</ol>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Talbott
|
@@ -56,6 +56,8 @@ files:
|
|
56
56
|
- lib/metry/experiment.rb
|
57
57
|
- lib/metry/psycho.rb
|
58
58
|
- lib/metry/psycho/dashboard.erb
|
59
|
+
- lib/metry/psycho/edit_goal.erb
|
60
|
+
- lib/metry/psycho/goal.erb
|
59
61
|
- lib/metry/psycho/layout.erb
|
60
62
|
- lib/metry/psycho/new_goal.erb
|
61
63
|
- lib/metry/psycho/visitor.erb
|