Skip to content

Commit

Permalink
Some frontend fixes - Using pp's pretty_inspect combined with <pre> t…
Browse files Browse the repository at this point in the history
…ags to make the objects a bit more readable
  • Loading branch information
Jordan Kueh committed Aug 19, 2020
1 parent e495605 commit 84e852c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions public/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
html {
background-color: #f2f3f4;
font-family: sans-serif;
}

.sidebar-nav ul {
Expand Down
2 changes: 1 addition & 1 deletion views/connections.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- @connections.each do |connection|
= connection.inspect
%pre= connection.pretty_inspect
%hr
2 changes: 1 addition & 1 deletion views/disconnect.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- @connections.each do |connection|
= connection.inspect
%pre= connection.pretty_inspect
%hr
8 changes: 4 additions & 4 deletions views/home.haml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- if @id_token
%h2 Decoded ID Token
= @id_token
%pre= @id_token.pretty_inspect
- if @access_token
%h2 Decoded Access Token
= @access_token
%pre= @access_token.pretty_inspect
- if @token_set
%h2 Rest of token_set
%strong expires_in:
Expand All @@ -13,10 +13,10 @@
%span= @token_set["token_type"]
%hr
%strong refresh_token:
%span= @token_set["refresh_token"]
%code= @token_set["refresh_token"]
%hr
%strong scope:
%span= @token_set["scope"]
%code= @token_set["scope"]
%hr
- else
%a{href: "#{@auth_url}"}
Expand Down
2 changes: 1 addition & 1 deletion views/invoices.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- @invoices.each do |invoice|
= invoice.inspect
%pre= invoice.pretty_inspect
%hr
2 changes: 1 addition & 1 deletion views/organisation.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- @organisations.each do |org|
= org.inspect
%pre= org.pretty_inspect
%hr
8 changes: 4 additions & 4 deletions views/refresh_token.haml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- if @id_token
%h2 Decoded ID Token
= @id_token
%pre= @id_token.pretty_inspect
- if @access_token
%h2 Decoded Access Token
= @access_token
%pre= @access_token.pretty_inspect
- if @token_set
%h2 Rest of token_set
%strong expires_in:
Expand All @@ -13,8 +13,8 @@
%span= @token_set["token_type"]
%hr
%strong refresh_token:
%span= @token_set["refresh_token"]
%code= @token_set["refresh_token"]
%hr
%strong scope:
%span= @token_set["scope"]
%code= @token_set["scope"]
%hr

0 comments on commit 84e852c

Please sign in to comment.