forked from thewca/worldcubeassociation.org
-
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
Showing
7 changed files
with
193 additions
and
26 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,3 +1,13 @@ | ||
// Place all the styles related to the StaticPages controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
#software-tools { | ||
.wca-tool-icon { | ||
width: 32px; | ||
} | ||
.tools-list { | ||
.panel-body { | ||
i { | ||
margin-right: 10px; | ||
} | ||
} | ||
margin-top: 15px; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<% tools ||= {} %> | ||
<% clearfix = false %> | ||
<div class="row tools-list"> | ||
<% tools.each do |key, hash| %> | ||
<div class="col-xs-12 col-md-6"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
<%= hash[:title] %> <%= wca_icon if hash[:wst] %> | ||
</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p><%= hash[:description] %></p> | ||
<% if hash[:url] %> | ||
<p> | ||
<%= icon("fas", "link") %> | ||
<%= link_to("Website", hash[:url], target: "_blank") %> | ||
</p> | ||
<% end %> | ||
<% if hash[:guide_url] %> | ||
<p> | ||
<%= icon("fas", "question-circle") %> | ||
<%= link_to("Guide", hash[:guide_url], target: "_blank") %> | ||
</p> | ||
<% end %> | ||
<% if hash[:src_url] %> | ||
<p> | ||
<%= icon("fab", "github") %> | ||
<%= link_to("Sources", hash[:src_url], target: "_blank") %> | ||
(<%= hash[:maintainer] %>) | ||
</p> | ||
<% end %> | ||
<% if hash[:download_url] %> | ||
<p> | ||
<%= icon("fas", "download") %> | ||
<%= link_to("Download", hash[:download_url], target: "_blank") %> | ||
</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<% if clearfix %> | ||
<div class="clearfix"></div> | ||
<% end %> | ||
<% clearfix = !clearfix %> | ||
<% end %> | ||
</div> |
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,13 +1,82 @@ | ||
<% provide(:title, t('score_tools.title')) %> | ||
<% provide(:title, t("score_tools.title")) %> | ||
|
||
<div class="container"> | ||
<% tools = { | ||
before: { | ||
age: { | ||
url: "https://goosly.github.io/AGE/", | ||
src_url: "https://github.com/Goosly/AGE", | ||
guide_url: "https://github.com/Goosly/AGE/wiki", | ||
maintainer: "Manu Vereecken", | ||
wst: false, | ||
}.merge(t("score_tools.tools.age")), | ||
groupifier: { | ||
url: "https://groupifier.jonatanklosko.com/", | ||
src_url: "https://github.com/jonatanklosko/groupifier", | ||
guide_url: "https://github.com/jonatanklosko/groupifier/wiki/Guide", | ||
maintainer: "Jonatan Kłosko", | ||
wst: false, | ||
}.merge(t("score_tools.tools.groupifier")), | ||
tnoodle: { | ||
url: "https://www.worldcubeassociation.org/regulations/scrambles/", | ||
guide_url: "https://www.worldcubeassociation.org/regulations/scrambles/", | ||
src_url: "https://github.com/thewca/tnoodle", | ||
maintainer: "WCA Software Team", | ||
wst: true, | ||
}.merge(t("score_tools.tools.tnoodle")), | ||
}, | ||
during: { | ||
live: { | ||
url: "https://live.worldcubeassociation.org/", | ||
src_url: "https://github.com/thewca/wca-live", | ||
guide_url: "https://github.com/thewca/wca-live/wiki/Guide", | ||
maintainer: "WCA Software Team", | ||
wst: true, | ||
}.merge(t("score_tools.tools.live")), | ||
certificates: { | ||
url: "https://goosly.github.io/wca-certificates/", | ||
src_url: "https://github.com/Goosly/wca-certificates", | ||
guide_url: "https://github.com/Goosly/wca-certificates/wiki", | ||
maintainer: "Manu Vereecken", | ||
wst: false, | ||
}.merge(t("score_tools.tools.certificates")), | ||
scorecards: { | ||
url: "https://goosly.github.io/wca-scorecards/", | ||
src_url: "https://github.com/Goosly/wca-scorecards", | ||
guide_url: "https://github.com/Goosly/wca-scorecards/wiki", | ||
maintainer: "Manu Vereecken", | ||
wst: false, | ||
}.merge(t("score_tools.tools.scorecards")), | ||
nightmare: { | ||
download_url: "https://www.worldcubeassociation.org/files/results.xls", | ||
wst: true, | ||
}.merge(t("score_tools.tools.nightmare")), | ||
}, | ||
after: { | ||
matcher: { | ||
url: "https://viroulep.github.io/scrambles-matcher/", | ||
src_url: "https://github.com/viroulep/scrambles-matcher/", | ||
maintainer: "Philippe Virouleau", | ||
wst: false, | ||
}.merge(t("score_tools.tools.matcher")), | ||
}, | ||
} %> | ||
|
||
<div class="container" id="software-tools"> | ||
<h1><%= yield(:title) %></h1> | ||
|
||
<ul class="list-group"> | ||
<% t('score_tools.paragraphs').values.each do |paragraph| %> | ||
<li class="list-group-item"> | ||
<%= raw paragraph %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<p><%= t("score_tools.intro.desc") %></p> | ||
<p><%= t("score_tools.intro.disclaimer") %></p> | ||
<p><%= t("score_tools.intro.used") %></p> | ||
|
||
<h2><%= t("score_tools.before.title") %></h2> | ||
<p><%= t("score_tools.before.desc") %></p> | ||
<%= render "software_list", tools: tools[:before] %> | ||
|
||
<h2><%= t("score_tools.during.title") %></h2> | ||
<p><%= t("score_tools.during.desc") %></p> | ||
<%= render "software_list", tools: tools[:during] %> | ||
|
||
<h2><%= t("score_tools.after.title") %></h2> | ||
<p><%= t("score_tools.after.desc") %></p> | ||
<%= render "software_list", tools: tools[:after] %> | ||
</div> |
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