diff --git a/src/views/error.ecr b/src/views/error.ecr index 8431acb47..74626dcf6 100644 --- a/src/views/error.ecr +++ b/src/views/error.ecr @@ -1 +1,4 @@ +<% content_for "header" do %> +<%= "Error" %> +<% end %> <%= error_message %> \ No newline at end of file diff --git a/src/views/layout.ecr b/src/views/layout.ecr index 26ad27fdd..3c5897068 100644 --- a/src/views/layout.ecr +++ b/src/views/layout.ecr @@ -8,6 +8,8 @@ + + <%= yield_content "header" %> - Invidious diff --git a/src/views/search.ecr b/src/views/search.ecr index 59dd7577d..9dedd89fd 100644 --- a/src/views/search.ecr +++ b/src/views/search.ecr @@ -1,3 +1,6 @@ +<% content_for "header" do %> + <%= query.size > 30 ? query[0,30] + "..." : query %> +<% end %> <% videos_list.each do |video| %>

<%= video.info["title"] %>

<% end %> \ No newline at end of file diff --git a/src/views/watch.ecr b/src/views/watch.ecr index 4e5e7b00b..d05e27393 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -1,4 +1,6 @@ -<%= video.info["title"] %> - Invidious +<% content_for "header" do %> +<%= video.info["title"] %> +<% end %> -

<%= video.info["title"] %> +

<%= video.info["title"] %> " aria-hidden="true">

@@ -25,7 +27,6 @@

<%= dislikes.to_i %>

Wilson Score : <%= ci_lower_bound(likes, likes + dislikes).round(4) %>

Rating : <%= rating.round(4) %> / 5

-

Engagement : <%= engagement.round(2) %>%

Earnings : <%= video.info.has_key?("allowed_ads") ? "~$" + ((views.to_f / 500).round(2)).to_s : "Unmonetized" %>

Allowed ads :
<%= video.info.has_key?("allowed_ads") ? video.info["allowed_ads"] : "Unmonetized" %>

@@ -36,7 +37,7 @@
<% related_videos_list.each do |video| %> -

<%= video.info["title"] %>

+

<%= video.info["title"] %>

<% end %>
\ No newline at end of file