From ffd510c781a76c97172f369ce54db1322fd49791 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 3 Feb 2015 21:51:27 -0700 Subject: add foundation classes and nav. --- app/views/agents/edit.html.erb | 12 +++++--- app/views/agents/index.html.erb | 52 ++++++++++++++++----------------- app/views/agents/new.html.erb | 10 +++++-- app/views/agents/show.html.erb | 19 +++++++----- app/views/dispositions/edit.html.erb | 14 ++++++--- app/views/dispositions/index.html.erb | 53 +++++++++++++++++++--------------- app/views/dispositions/new.html.erb | 10 +++++-- app/views/dispositions/show.html.erb | 26 ++++++++++------- app/views/events/index.html.erb | 53 +++++++++++++++++----------------- app/views/events/new.html.erb | 10 +++++-- app/views/layouts/application.html.erb | 18 ++++++++++++ 11 files changed, 166 insertions(+), 111 deletions(-) diff --git a/app/views/agents/edit.html.erb b/app/views/agents/edit.html.erb index bed9b23..7e8b939 100644 --- a/app/views/agents/edit.html.erb +++ b/app/views/agents/edit.html.erb @@ -1,6 +1,10 @@ -

Editing Agent

+
+
+

Editing Agent

-<%= render 'form' %> + <%= render 'form' %> -<%= link_to 'Show', @agent %> | -<%= link_to 'Back', agents_path %> + <%= link_to 'Show', @agent %> | + <%= link_to 'Back', agents_path %> +
+
diff --git a/app/views/agents/index.html.erb b/app/views/agents/index.html.erb index 48a36e2..3a6b738 100644 --- a/app/views/agents/index.html.erb +++ b/app/views/agents/index.html.erb @@ -1,28 +1,28 @@ -

<%= notice %>

+
+
+

<%= notice %>

-

Listing Agents

+

Listing Agents

+ <%= link_to 'New Agent', new_agent_path, class: 'button' %> - - - - - - - - - - <% @agents.each do |agent| %> - - - - - - - - <% end %> - -
Hostname
<%= agent.hostname %><%= link_to 'Events', agent_events_path(agent) %><%= link_to 'Show', agent %><%= link_to 'Edit', edit_agent_path(agent) %><%= link_to 'Destroy', agent, method: :delete, data: { confirm: 'Are you sure?' } %>
- -
- -<%= link_to 'New Agent', new_agent_path %> + + + + + + + + + <% @agents.each do |agent| %> + + + + + + + + <% end %> + +
Hostname
<%= agent.hostname %><%= link_to 'Events', agent_events_path(agent) %><%= link_to 'Show', agent %><%= link_to 'Edit', edit_agent_path(agent) %><%= link_to 'Destroy', agent, method: :delete, data: { confirm: 'Are you sure?' } %>
+
+
diff --git a/app/views/agents/new.html.erb b/app/views/agents/new.html.erb index 782236f..ce5d37a 100644 --- a/app/views/agents/new.html.erb +++ b/app/views/agents/new.html.erb @@ -1,5 +1,9 @@ -

New Agent

+
+
+

New Agent

-<%= render 'form' %> + <%= render 'form' %> -<%= link_to 'Back', agents_path %> + <%= link_to 'Back', agents_path %> +
+
diff --git a/app/views/agents/show.html.erb b/app/views/agents/show.html.erb index 0e7a061..61fad2c 100644 --- a/app/views/agents/show.html.erb +++ b/app/views/agents/show.html.erb @@ -1,9 +1,14 @@ -

<%= notice %>

+
+
+

<%= notice %>

-

- Hostname: - <%= @agent.hostname %> -

+

+ Hostname: + <%= @agent.hostname %> +

-<%= link_to 'Edit', edit_agent_path(@agent) %> | -<%= link_to 'Back', agents_path %> + <%= link_to 'Edit', edit_agent_path(@agent) %> | + <%= link_to 'Events', agent_events_path(@agent) %> | + <%= link_to 'Back', agents_path %> +
+
diff --git a/app/views/dispositions/edit.html.erb b/app/views/dispositions/edit.html.erb index 6d50123..4bdd9b4 100644 --- a/app/views/dispositions/edit.html.erb +++ b/app/views/dispositions/edit.html.erb @@ -1,6 +1,12 @@ -

Editing Disposition

+
+
-<%= render 'form' %> +

Editing Disposition

+ -<%= link_to 'Show', @disposition %> | -<%= link_to 'Back', dispositions_path %> + <%= render 'form' %> + + <%= link_to 'Show', @disposition %> | + <%= link_to 'Back', dispositions_path %> +
+
diff --git a/app/views/dispositions/index.html.erb b/app/views/dispositions/index.html.erb index 903acbb..c4f8023 100644 --- a/app/views/dispositions/index.html.erb +++ b/app/views/dispositions/index.html.erb @@ -1,29 +1,34 @@ -

<%= notice %>

-

Listing Dispositions

+
+
+

<%= notice %>

- - - - - - - - +

Listing Dispositions

+
    +
  • <%= link_to 'New Disposition', new_disposition_path, class: 'button' %>
  • +
- - <% @dispositions.each do |disposition| %> - - - - - - - - <% end %> - -
FingerprintState
<%= disposition.fingerprint %><%= disposition.state %><%= link_to 'Show', disposition %><%= link_to 'Edit', edit_disposition_path(disposition) %><%= link_to 'Destroy', disposition, method: :delete, data: { confirm: 'Are you sure?' } %>
+ + + + + + + + -
+ + <% @dispositions.each do |disposition| %> + + + + + + + + <% end %> + +
FingerprintState
<%= disposition.fingerprint %><%= disposition.state %><%= link_to 'Show', disposition %><%= link_to 'Edit', edit_disposition_path(disposition) %><%= link_to 'Destroy', disposition, method: :delete, data: { confirm: 'Are you sure?' } %>
-<%= link_to 'New Disposition', new_disposition_path %> +
+
diff --git a/app/views/dispositions/new.html.erb b/app/views/dispositions/new.html.erb index 103c10a..46a801c 100644 --- a/app/views/dispositions/new.html.erb +++ b/app/views/dispositions/new.html.erb @@ -1,5 +1,9 @@ -

New Disposition

+
+
+

New Disposition

-<%= render 'form' %> + <%= render 'form' %> -<%= link_to 'Back', dispositions_path %> + <%= link_to 'Back', dispositions_path %> +
+
diff --git a/app/views/dispositions/show.html.erb b/app/views/dispositions/show.html.erb index c9437f4..b60f875 100644 --- a/app/views/dispositions/show.html.erb +++ b/app/views/dispositions/show.html.erb @@ -1,14 +1,18 @@ -

<%= notice %>

+
+
+

<%= notice %>

-

- Fingerprint: - <%= @disposition.fingerprint %> -

+

+ Fingerprint: + <%= @disposition.fingerprint %> +

-

- State: - <%= @disposition.state %> -

+

+ State: + <%= @disposition.state %> +

-<%= link_to 'Edit', edit_disposition_path(@disposition) %> | -<%= link_to 'Back', dispositions_path %> + <%= link_to 'Edit', edit_disposition_path(@disposition) %> | + <%= link_to 'Back', dispositions_path %> +
+
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index bf0480c..32f6562 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -1,29 +1,30 @@ -

<%= notice %>

+
+
+

<%= notice %>

-

Listing Events

+

Listing Events

+ <%= link_to 'New Event', new_agent_event_path(@agent), class: 'button' %> - - - - - - - - - +
NameDataCreated At
+ + + + + + + + - - <% @events.each do |event| %> - - - - - - - <% end %> - -
NameDataCreated At
<%= event.name %><%= event.data %><%= event.created_at %><%= link_to 'Destroy', [@agent, event], method: :delete, data: { confirm: 'Are you sure?' } %>
- -
- -<%= link_to 'New Event', new_agent_event_path(@agent) %> + + <% @events.each do |event| %> + + <%= event.name %> + <%= event.data %> + <%= event.created_at %> + <%= link_to 'Destroy', [@agent, event], method: :delete, data: { confirm: 'Are you sure?' } %> + + <% end %> + + +
+
diff --git a/app/views/events/new.html.erb b/app/views/events/new.html.erb index 1c0b206..ed30f02 100644 --- a/app/views/events/new.html.erb +++ b/app/views/events/new.html.erb @@ -1,5 +1,9 @@ -

New Event

+
+
+

New Event

-<%= render 'form' %> + <%= render 'form' %> -<%= link_to 'Back', agent_events_path(@agent) %> + <%= link_to 'Back', agent_events_path(@agent) %> +
+
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 7222aa8..dde8e33 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -13,6 +13,24 @@ +
+ +
<%= yield %> -- cgit v1.2.3