-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
509bd45
commit 64c8460
Showing
3 changed files
with
52 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
<% item = @wikidata_link.item %> | ||
|
||
<%= turbo_frame_tag @wikidata_link do %> | ||
<div class="row"> | ||
|
||
<div class="col-lg"> | ||
<dl> | ||
|
||
<div class="row my-2"> | ||
<dt class="col-sm"> | ||
<%= simple_icon "wikidata" %> | ||
Wikidata | ||
</dt> | ||
<dd class="col-sm text-sm-end"> | ||
<%= link_to @wikidata_link.qcode, @wikidata_link.url, title: "#{@wikidata_link.title} - Wikidata" %> | ||
<% if item.present? %>(<%= item.label("en") %>)<% end %> | ||
</dd> | ||
</div> | ||
|
||
<% if item.present? %> | ||
|
||
<% if item.sitelink_url("enwiki").present? %> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col-lg"> | ||
<dl> | ||
<div class="row my-2"> | ||
<dt class="col-sm"> | ||
<%= simple_icon "wikipedia" %> | ||
Wikipedia | ||
<%= simple_icon "wikidata" %> | ||
Wikidata | ||
</dt> | ||
<dd class="col-sm text-sm-end"> | ||
<span class="badge text-bg-info">en</span> | ||
<%= link_to item.sitelink_title("enwiki"), item.sitelink_url, title: "#{item.sitelink_title} - Wikipedia" %> | ||
<%= link_to @wikidata_link.qcode, @wikidata_link.url, title: "#{@wikidata_link.title} - Wikidata" %> | ||
<% if item.present? %>(<%= item.label("en") %>)<% end %> | ||
</dd> | ||
</div> | ||
<% end %> | ||
|
||
<% if item.sitelink_url("commonswiki").present? %> | ||
<div class="row my-2"> | ||
<dt class="col-sm"> | ||
<%= simple_icon "wikimediacommons" %> | ||
Wikimedia Commons | ||
</dt> | ||
<dd class="col-sm text-sm-end"><%= link_to item.sitelink_title("commonswiki"), item.sitelink_url("commonswiki"), title: "#{item.sitelink_title('commonswiki')} - Wikimedia Commons" %></dd> | ||
</div> | ||
<% end %> | ||
<% if item.present? %> | ||
<% if item.sitelink_url("enwiki").present? && item.sitelink_title("enwiki").present? %> | ||
<div class="row my-2"> | ||
<dt class="col-sm"> | ||
<%= simple_icon "wikipedia" %> | ||
Wikipedia | ||
</dt> | ||
<dd class="col-sm text-sm-end"> | ||
<span class="badge text-bg-info">en</span> | ||
<%= link_to item.sitelink_title("enwiki"), item.sitelink_url("enwiki"), title: "#{item.sitelink_title('enwiki')} - Wikipedia" %> | ||
</dd> | ||
</div> | ||
<% end %> | ||
|
||
<% if item.sitelink_url("commonswiki").present? && item.sitelink_title("commonswiki").present? %> | ||
<div class="row my-2"> | ||
<dt class="col-sm"> | ||
<%= simple_icon "wikimediacommons" %> | ||
Wikimedia Commons | ||
</dt> | ||
<dd class="col-sm text-sm-end"> | ||
<%= link_to item.sitelink_title("commonswiki"), item.sitelink_url("commonswiki"), title: "#{item.sitelink_title('commonswiki')} - Wikimedia Commons" %> | ||
</dd> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</dl> | ||
</div> | ||
|
||
<% if item.wikipedia_extract.present? %> | ||
<div class="col-lg"> | ||
<div class="alert alert-light shadow-sm"> | ||
<%= render item.wikipedia_extract %> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
</dl> | ||
</div> | ||
|
||
<% if item.wikipedia_extract.present? %> | ||
<div class="col-lg"> | ||
<%= render item.wikipedia_extract %> | ||
</div> | ||
<% end %> | ||
|
||
</div> | ||
</div> | ||
<% end %> |
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,6 +1,6 @@ | ||
<figure> | ||
<blockquote class="blockquote text-muted"><%= wikipedia_extract.text %></blockquote> | ||
<figcaption class="blockquote-footer"> | ||
from <a href="<%= wikipedia_extract.url %>" target="_blank">Wikipedia</a>, the free encyclopaedia | ||
<blockquote class="blockquote text-muted"><small>«<%= wikipedia_extract.text %>»</small></blockquote> | ||
<figcaption class="blockquote-footer text-end"> | ||
from <cite title="Source Title"><a href="<%= wikipedia_extract.url %>" target="_blank">Wikipedia</a>, the free encyclopaedia</cite> | ||
</figcaption> | ||
</figure> |