-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start creating perspective create/update page for arbitrary queries
- Loading branch information
Showing
16 changed files
with
77 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title><%= ["spendbetter", content_for(:title)].compact.join(" – ") %></title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
<head> | ||
<title><%= ["spendbetter", content_for(:title)].compact.join(" – ") %></title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
|
||
<%= yield :head %> | ||
<%= yield :head %> | ||
|
||
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> | ||
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> | ||
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> | ||
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> | ||
|
||
<link rel="icon" href="/icon.png" type="image/png"> | ||
<link rel="icon" href="/icon.svg" type="image/svg+xml"> | ||
<link rel="apple-touch-icon" href="/icon.png"> | ||
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css"> | ||
<link rel="icon" href="/icon.png" type="image/png"> | ||
<link rel="icon" href="/icon.svg" type="image/svg+xml"> | ||
<link rel="apple-touch-icon" href="/icon.png"> | ||
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css"> | ||
|
||
<%# Includes all stylesheet files in app/assets/stylesheets %> | ||
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> | ||
<%= javascript_importmap_tags %> | ||
</head> | ||
<%# Includes all stylesheet files in app/assets/stylesheets %> | ||
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> | ||
<%= javascript_importmap_tags %> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<nav> | ||
<%= link_to "Home", root_path %> | ||
<%= link_to "Perspectives", perspectives_path %> | ||
<%= link_to "Folders", folders_path %> | ||
<%= link_to "Entries", entries_path %> | ||
</nav> | ||
<h1>spendbetter</h1> | ||
</header> | ||
<body> | ||
<header style="padding: 0"> | ||
<%= link_to root_path, style: "text-decoration: none; color: black" do %> | ||
<h1>spendbetter</h1> | ||
<% end %> | ||
</header> | ||
|
||
<main> | ||
<%= yield %> | ||
</main> | ||
</body> | ||
<main> | ||
<%= yield %> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<p style="color: green"><%= notice %></p> | ||
|
||
<% content_for :title, "Perspectives" %> | ||
|
||
<h1>Perspectives</h1> | ||
|
||
<div id="perspectives"> | ||
<% @perspectives.each do |perspective| %> | ||
<%= render perspective %> | ||
<p> | ||
<%= link_to "Show this perspective", perspective %> | ||
</p> | ||
<%= link_to perspective.name, perspectives_path(perspective:) %> | | ||
<% end %> | ||
|
||
<%= link_to "New", perspectives_path(perspective: nil) %> | ||
</div> | ||
|
||
<%= link_to "New perspective", new_perspective_path %> | ||
<div id="perspective" style="margin-top: 1rem"> | ||
<%= render "form", perspective: @perspective %> | ||
</div> | ||
|
||
<div id="perspectives-results" style="margin-top: 1rem"> | ||
<%= render "results", perspective: @perspective %> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters