Skip to content

Commit

Permalink
small frontend change, add http basic auth for changing sources
Browse files Browse the repository at this point in the history
  • Loading branch information
pessi-v committed Jun 24, 2024
1 parent 226f897 commit d2d9416
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/layouts/_reader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
gap: var(--space-m);
}

.reader p {
.reader #readability-page-1 p {
font-size: var(--font-size-l);
line-height: var(--line-height-reader);
}
Expand Down
1 change: 1 addition & 0 deletions app/controllers/sources_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class SourcesController < ApplicationController
before_action :set_source, only: %i[ show edit update destroy ]
http_basic_authenticate_with name: "admin", password: "metazine", only: [:new, :edit, :create, :destroy, :update]

# GET /sources or /sources.json
def index
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/_article_headline.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
- unless request.original_url.match?(reader_path)
= link_to('○', reader_path(article), title: "Read on #{ENV['APP_NAME']}", class: 'reader_link')
- if with_timestamp
.source
p.source
= article.published_at.strftime('%A %-d.%-m.%Y')

0 comments on commit d2d9416

Please sign in to comment.