-
Notifications
You must be signed in to change notification settings - Fork 71
Better http #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Better http #100
Changes from 5 commits
8edbf96
4a1eaf7
c89f431
4d59f68
3fa029b
3587ef0
cdfb909
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,15 @@ class StoriesController < ApplicationController | |
| before_action :set_cache_control_headers, only: %i[index search show] | ||
|
|
||
| def index | ||
| push_headers = [ | ||
| "<#{view_context.asset_path('bell.svg')}>; rel=preload; as=image", | ||
| "<#{view_context.asset_path('menu.svg')}>; rel=preload; as=image", | ||
| "<#{view_context.asset_path('connect.svg')}>; rel=preload; as=image", | ||
| "<#{view_context.asset_path('stack.svg')}>; rel=preload; as=image", | ||
| "<#{view_context.asset_path('lightning.svg')}>; rel=preload; as=image", | ||
| ] | ||
| response.headers["Link"] = push_headers.join(", ") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👌 |
||
|
|
||
| add_param_context(:username, :tag) | ||
| return handle_user_or_organization_or_podcast_index if params[:username] | ||
| return handle_tag_index if params[:tag] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ | |
| <div class="on-page-nav-controls" id="on-page-nav-controls"> | ||
| <div class="on-page-nav-label"> | ||
| <div class="wide-nav-links"> | ||
| <a class="nav-chronofiter-link <%= "selected" if ["week", "month", "year", "infinity", "latest"].exclude?(params[:timeframe]) %>" href="<%= list_path %>/"> | ||
| <a class="nav-chronofiter-link <%= "selected" if %w[week month year infinity latest].exclude?(params[:timeframe]) %>" href="<%= list_path %>/"> | ||
| FEED | ||
| </a> | ||
| <span class="separator"></span> | ||
|
|
@@ -71,10 +71,10 @@ | |
| </div> | ||
| </div> | ||
| <button class="on-page-nav-butt on-page-nav-butt-left" id="on-page-nav-butt-left" aria-label="nav-button-left"> | ||
| <img src="<%= asset_path "stack.svg" %>" alt="left-sidebar-nav"> | ||
| <%= inline_svg("stack.svg", size: "100% * 100%", alt: "left-sidebar-nav") %> | ||
|
||
| </button> | ||
| <button class="on-page-nav-butt on-page-nav-butt-right" id="on-page-nav-butt-right" aria-label="nav-button-right"> | ||
| <img src="<%= asset_path "lightning.svg" %>" alt="right-sidebar-nav"> | ||
| <%= inline_svg("lightning.svg", size: "100% * 100%", alt: "right-sidebar-nav") %> | ||
| </button> | ||
| </div> | ||
|
|
||
|
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пара гемов оказались не доступны - заменил на одноименные форки.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
блин, странно, мне казалось я это фиксил