Sha256: 434bcce4605f5dec29dfeb9033c124ed9e65e98f4944e5758452519eac1f8b99

Contents?: true

Size: 1.34 KB

Versions: 5

Compression:

Stored size: 1.34 KB

Contents

<div id="container-main" class="mg-goals">
	<h1>Your Goals</h1>
	<div class="container-content">
		<div class="title-bar">
			<span class="category name">Goal</span>
			<span class="category hit-total">Total</span>
			<span class="category hit-recent">Recent</span>
			<span class="category hit-points">Points</span>
			<span class="category actions">Actions</span>
		</div>
		<ul class="listed">
			<% @goals.each do |goal| %>
				<li class="conversion-goal">
					<span class="category name"><%=h goal.name %></span>
					<span class="category hit-total"><%=h goal.mg_records.count %></span>
					<span class="category hit-recent"><%=h goal.recent_records(1.week).count %></span>
					<span class="category hit-points"><%=h goal.rewards_total || "None" %></span>
					<span class="category actions">
						<a href="<%= mg_goal_url :id => goal.id %>">View</a>
						<a href="<%= edit_mg_goal_url :id => goal.id %>">Edit</a>
						<a href="<%= hide_mg_goal_url :id => goal.id %>">Hide</a>
					</span>
				</li>
			<% end %>
		</ul>
		<div class="action-bar">
			<a class="button" href="<%= new_mg_goal_url %>">New Goal</a>
		</div>
	</div>
	
	<div class="hidden-goals">
		<% @hidden_goals.each do |goal| %>
			<span class="name"><%=h goal.name %></span>
			<span class="unhide"><a href="<%= unhide_mg_goal_url :id => goal.id %>">Restore</a></span>
		<% end %>
	</div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mountain-goat-1.0.6pre1 lib/mountain-goat/views/mountain_goat/mg/goals/index.html.erb
mountain-goat-1.0.5 lib/mountain-goat/views/mountain_goat/mg/goals/index.html.erb
mountain-goat-1.0.4 lib/mountain-goat/views/mountain_goat/mg/goals/index.html.erb
mountain-goat-1.0.3 lib/mountain-goat/views/mountain_goat/mg/goals/index.html.erb
mountain-goat-1.0.2 lib/mountain-goat/views/mountain_goat/mg/goals/index.html.erb