-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add an autosplitter badge Adds a badge to runs that were performed using an autosplitter. * CR comments
- Loading branch information
Showing
7 changed files
with
41 additions
and
21 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
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,20 +1,24 @@ | ||
- if run.completed?(Run::REAL) && run.completed?(Run::GAME) | ||
- if timing == Run::REAL | ||
a.badge.badge-dark.tip( | ||
title='Recorded in realtime & gametime — click to switch' | ||
a.badge.badge-dark( | ||
href=run_path(run, params.permit(:compare).merge(timing: 'game')) | ||
v-tippy=true | ||
title='Recorded in realtime & gametime—click to switch' | ||
) | ||
span.text-success => icon('fas', 'globe-americas') | ||
= icon('fas', 'gamepad') | ||
- if timing == Run::GAME | ||
a.badge.badge-dark.tip( | ||
title='Recorded in realtime & gametime — click to switch' | ||
a.badge.badge-dark( | ||
href=run_path(run, params.permit(:compare).merge(timing: 'real')) | ||
v-tippy=true | ||
title='Recorded in realtime & gametime—click to switch' | ||
) | ||
=> icon('fas', 'globe-americas') | ||
span.text-success = icon('fas', 'gamepad') | ||
- else | ||
- if run.completed?(Run::REAL) | ||
.badge.tip title='Recorded in realtime' = icon('fas', 'globe-americas') | ||
.badge v-tippy=true title='"Recorded in realtime"' | ||
= icon('fas', 'globe-americas') | ||
- if run.completed?(Run::GAME) | ||
.badge.tip title='Recorded in gametime' = icon('fas', 'gamepad') | ||
.badge v-tippy=true title='Recorded in gametime' | ||
= icon('fas', 'gamepad') |
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,5 @@ | ||
class AddUsesAutosplitterToRuns < ActiveRecord::Migration[6.0] | ||
def change | ||
add_column :runs, :uses_autosplitter, :bool, null: true | ||
end | ||
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