-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7651 from fjordllc/feature/rewrite-external-entri…
…es-from-vue-to-html みんなのブログを非Vue化(HTMLに変更)
- Loading branch information
Showing
12 changed files
with
34 additions
and
165 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class ExternalEntriesController < ApplicationController | ||
def index; end | ||
def index | ||
@external_entries = ExternalEntry.with_avatar.order(published_at: :desc).page(params[:page]) | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.page-main | ||
.page-body | ||
.container.is-md | ||
= paginate(@external_entries) | ||
.card-list.a-card | ||
= render(@external_entries) | ||
= paginate(@external_entries) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.card-list-item | ||
.card-list-item__inner | ||
.card-list-item__user | ||
= render('users/icon', user: external_entry.user, image_class: 'card-list-item__user-icon') | ||
.card-list-item__rows | ||
.card-list-item__row | ||
.card-list-item-title | ||
h2.card-list-item-title__title | ||
= link_to external_entry.title, external_entry.url, rel: 'noopener', target: '_blank', class: 'card-list-item-title__link a-text-link' | ||
.card-list-item__row | ||
.card-list-item__summary | ||
p | ||
| #{external_entry.summary} | ||
.card-list-item__row | ||
.card-list-item-meta | ||
.card-list-item-meta__items | ||
.card-list-item-meta__item | ||
time.a-meta | ||
= l(external_entry.published_at) | ||
.card-list-item__thumbnail | ||
= link_to external_entry.url, class: 'card-list-item__thumbnail-inner', target: '_blank', rel: 'noopener' do | ||
= image_tag(external_entry.thumbnail_url, class: 'card-list-item__thumbnail-image') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ header.page-header | |
| ブログのフィード URL の登録 | ||
| をしてください。 | ||
|
||
div(data-vue="ExternalEntries") | ||
= render('external_entries') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters