From 5d29e7d19917db42939d0242ff74aa36855dbc4a Mon Sep 17 00:00:00 2001 From: Isuranga Perera Date: Sat, 22 Apr 2023 02:08:20 -0500 Subject: [PATCH] Fix styling --- .../views/assumptions/_assumption.html.erb | 7 ++-- app/app/views/assumptions/edit.html.erb | 17 ++++++--- app/app/views/assumptions/index.html.erb | 16 -------- app/app/views/assumptions/new.html.erb | 16 +++++--- app/app/views/assumptions/show.html.erb | 36 +++++++++--------- app/app/views/layouts/application.html.erb | 6 ++- app/app/views/practices/_practice.html.erb | 6 +-- app/app/views/practices/edit.html.erb | 16 +++++--- app/app/views/practices/index.html.erb | 16 -------- app/app/views/practices/new.html.erb | 17 ++++++--- app/app/views/practices/show.html.erb | 30 ++++++++------- app/app/views/theories/_theory.html.erb | 6 +-- app/app/views/theories/edit.html.erb | 16 +++++--- app/app/views/theories/index.html.erb | 16 -------- app/app/views/theories/new.html.erb | 15 +++++--- app/app/views/theories/show.html.erb | 32 +++++++++------- app/db/development.sqlite3 | Bin 106496 -> 106496 bytes 17 files changed, 130 insertions(+), 138 deletions(-) diff --git a/app/app/views/assumptions/_assumption.html.erb b/app/app/views/assumptions/_assumption.html.erb index 71dc3a06..80f553da 100644 --- a/app/app/views/assumptions/_assumption.html.erb +++ b/app/app/views/assumptions/_assumption.html.erb @@ -1,7 +1,8 @@
-

-

<%= assumption.name %>

-

+ +
+ <%= assumption.name.capitalize %> +

Description: diff --git a/app/app/views/assumptions/edit.html.erb b/app/app/views/assumptions/edit.html.erb index 71c60a98..ab20ff72 100644 --- a/app/app/views/assumptions/edit.html.erb +++ b/app/app/views/assumptions/edit.html.erb @@ -1,10 +1,15 @@ -

Editing assumption

+
-<%= render "form", assumption: @assumption %> +
+ Edit assumption +
-
+ <%= render "form", assumption: @assumption %> -
- <%= link_to "Show this assumption", @assumption %> | - <%= link_to "Back to assumptions", assumptions_path %> +
+ +
+ <%= link_to "Show this assumption", @assumption %> | + <%= link_to "Back to assumptions", assumptions_path %> +
diff --git a/app/app/views/assumptions/index.html.erb b/app/app/views/assumptions/index.html.erb index 0c4b39f0..d9b35dcc 100644 --- a/app/app/views/assumptions/index.html.erb +++ b/app/app/views/assumptions/index.html.erb @@ -1,16 +1,3 @@ - - - <%= csrf_meta_tags %> - <%= csp_meta_tag %> - <%= stylesheet_link_tag 'bootstrap', media: 'all', 'data-turbolinks-track': 'reload' %> - <%= stylesheet_link_tag 'bootstrap-icons', media: 'all', 'data-turbolinks-track': 'reload' %> - <%= stylesheet_link_tag 'boxicons', media: 'all', 'data-turbolinks-track': 'reload' %> - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> - - Assumptions - - -

<%= notice %>

@@ -46,6 +33,3 @@ window.parent.resetGraph(); } - - - diff --git a/app/app/views/assumptions/new.html.erb b/app/app/views/assumptions/new.html.erb index d6409af1..eafac212 100644 --- a/app/app/views/assumptions/new.html.erb +++ b/app/app/views/assumptions/new.html.erb @@ -1,9 +1,13 @@ -

New assumption

+
-<%= render "form", assumption: @assumption %> +
+ New assumption +
+ <%= render "form", assumption: @assumption %> -
+
-
- <%= link_to "Back to assumptions", assumptions_path %> -
+
+ <%= link_to "Back to assumptions", assumptions_path %> +
+
\ No newline at end of file diff --git a/app/app/views/assumptions/show.html.erb b/app/app/views/assumptions/show.html.erb index daef11a5..8abe91fb 100644 --- a/app/app/views/assumptions/show.html.erb +++ b/app/app/views/assumptions/show.html.erb @@ -1,23 +1,25 @@ -

<%= notice %>

+
-<%= render @assumption %> +

<%= notice %>

-
- - <%= link_to "Back to assumptions", assumptions_path %> - - <% if Rails.env.test? %> - | <%= link_to "Edit this assumption", edit_assumption_path(@assumption) %> - <%= button_to "Destroy this assumption", @assumption, method: :delete %> - <% end %> - - - <% if session[:userinfo].present? %> - | <%= link_to "Edit this assumption", edit_assumption_path(@assumption) %> - <%= button_to "Destroy this assumption", @assumption, method: :delete %> - <% end %> -
+ <%= render @assumption %> + +
+ <%= link_to "Back to assumptions", assumptions_path %> + + <% if Rails.env.test? %> + | <%= link_to "Edit this assumption", edit_assumption_path(@assumption) %> + <%= button_to "Destroy this assumption", @assumption, method: :delete %> + <% end %> + + + <% if session[:userinfo].present? %> + | <%= link_to "Edit this assumption", edit_assumption_path(@assumption) %> + <%= button_to "Destroy this assumption", @assumption, method: :delete %> + <% end %> +
+
- - - diff --git a/app/app/views/practices/new.html.erb b/app/app/views/practices/new.html.erb index 7f791ec6..d0b1ee5c 100644 --- a/app/app/views/practices/new.html.erb +++ b/app/app/views/practices/new.html.erb @@ -1,9 +1,14 @@ -

New practice

+
-<%= render "form", practice: @practice %> +
+ New practice +
-
+ <%= render "form", practice: @practice %> -
- <%= link_to "Back to practices", practices_path %> -
+
+ +
+ <%= link_to "Back to practices", practices_path %> +
+
\ No newline at end of file diff --git a/app/app/views/practices/show.html.erb b/app/app/views/practices/show.html.erb index 7384acf7..d1748cbf 100644 --- a/app/app/views/practices/show.html.erb +++ b/app/app/views/practices/show.html.erb @@ -1,20 +1,22 @@ -

<%= notice %>

+
+

<%= notice %>

-<%= render @practice %> + <%= render @practice %> -
+
- <%= link_to "Back to practices", practices_path %> - - <% if Rails.env.test? %> - | <%= link_to "Edit this practice", edit_practice_path(@practice) %> - <%= button_to "Destroy this practice", @practice, method: :delete %> - <% end %> - - <% if session[:userinfo].present? %> - | <%= link_to "Edit this practice", edit_practice_path(@practice) %> - <%= button_to "Destroy this practice", @practice, method: :delete %> - <% end %> + <%= link_to "Back to practices", practices_path %> + + <% if Rails.env.test? %> + | <%= link_to "Edit this practice", edit_practice_path(@practice) %> + <%= button_to "Destroy this practice", @practice, method: :delete %> + <% end %> + + <% if session[:userinfo].present? %> + | <%= link_to "Edit this practice", edit_practice_path(@practice) %> + <%= button_to "Destroy this practice", @practice, method: :delete %> + <% end %> +
- - - diff --git a/app/app/views/theories/new.html.erb b/app/app/views/theories/new.html.erb index c3890652..0c3bdec2 100644 --- a/app/app/views/theories/new.html.erb +++ b/app/app/views/theories/new.html.erb @@ -1,9 +1,14 @@ -

New theory

+
-<%= render "form", theory: @theory %> +
+ New theory +
-
+ <%= render "form", theory: @theory %> -
- <%= link_to "Back to theories", theories_path %> +
+ +
+ <%= link_to "Back to theories", theories_path %> +
diff --git a/app/app/views/theories/show.html.erb b/app/app/views/theories/show.html.erb index 49dcad52..ff5d772f 100644 --- a/app/app/views/theories/show.html.erb +++ b/app/app/views/theories/show.html.erb @@ -1,20 +1,24 @@ -

<%= notice %>

+
+

<%= notice %>

-<%= render @theory %> + <%= render @theory %> -
- - <%= link_to "Back to theories", theories_path %> - - <% if Rails.env.test?%> - | <%= link_to "Edit this theory", edit_theory_path(@theory) %> - <%= button_to "Destroy this theory", @theory, method: :delete %> - <% end %> - - <% if session[:userinfo].present? %> - | <%= link_to "Edit this theory", edit_theory_path(@theory) %> - <%= button_to "Destroy this theory", @theory, method: :delete %> +
+ + <%= link_to "Back to theories", theories_path%> + + + <% if Rails.env.test? %> + | <%= link_to "Edit this theory", edit_theory_path(@theory) %> + <%= button_to "Destroy this theory", @theory, method: :delete %> + <% end %> + + + <% if session[:userinfo].present? %> + | <%= link_to "Edit this theory", edit_theory_path(@theory)%> + <%= button_to "Destroy this theory", @theory, method: :delete %> <% end %> +