diff options
author | pdp8 <pdp8@pdp8.info> | 2023-06-08 23:31:07 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-06-08 23:31:07 +0200 |
commit | e13839321f5b1dd1106a00cd3f93259bdf1ca8c6 (patch) | |
tree | da32268b706283db33823b6d1c2580a32294d6f6 /views | |
parent | 0751c83a552e3b5d7b4270823c1d231b2976df8f (diff) |
threads, dark style
Diffstat (limited to 'views')
-rw-r--r-- | views/index.erb | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/views/index.erb b/views/index.erb index a698565..3a245a9 100644 --- a/views/index.erb +++ b/views/index.erb @@ -5,30 +5,7 @@ </head> <body> <% @inbox.each do |item| %> - <b><a href='<%= item[:actor_url] %>', target='_blank'><%= item[:mention] %></a></b> - <form action='<%= File.join item[:follow], item[:mention] %>' method='post'> - <button><%= item[:follow].capitalize %></button> - </form> - <p><%= item[:content] %> - <% if item[:attachment] - item[:attachment].each do |att| - case att['mediaType'] - when /audio/ %> - <br><audio controls=''><source src='<%= att['url'] %>' type='<%= att['mediaType'] %>'></audio> - <% when /image/ %> - <br><a href='<%= att['url'] %>'><img src='<%= att['url'] %>'></a> - <% when /video/ %> - <br><video controls=''><source src='<%= att['url'] %>' type='<%= att['mediaType'] %>'></video> - <% else %> - <%= att %><br> - <a href='<%= att['url'] %>'><%= att['url'] %></a> - <% end %> - <% end %> - <% end %> - <p> - <form action='<%= File.join 'delete', item[:file] %>' method='post'> - <button>Delete</button> - </form> + <%= erb :item %> <hr> <% end %> </body> |