initial commit
This commit is contained in:
21
app/views/team/list.html.slim
Normal file
21
app/views/team/list.html.slim
Normal file
@@ -0,0 +1,21 @@
|
||||
.Panel.u-sm-size1of2.u-spaceSidesAuto.u-spaceSm.u-maxWidthSm
|
||||
.Panel-header
|
||||
h3.Panel-title My Teams
|
||||
.Panel-body
|
||||
- for team in teams
|
||||
- if !team.is_archived_season
|
||||
a.Panel-row.Panel-row--withCells.u-textDecorationNone href="#{url_for team_path :team_id=>team.id }"
|
||||
.Panel-cell.u-flexGrow1
|
||||
b #{team.name}
|
||||
.Panel-cell.u-fontSizeSm.u-size1of3.u-textRight
|
||||
| #{team.season_name}
|
||||
.Panel-row.Panel-row--header
|
||||
| Archived Seasons
|
||||
- for team in teams
|
||||
- if team.is_archived_season
|
||||
a.Panel-row.Panel-row--withCells.u-textDecorationNone href="#{url_for team_path :team_id=>team.id }"
|
||||
.Panel-cell.u-flexGrow1
|
||||
b #{team.name}
|
||||
.Panel-cell.u-fontSizeSm.u-size1of3.u-textRight
|
||||
| #{team.season_name}
|
||||
|
||||
50
app/views/team/show.html.slim
Normal file
50
app/views/team/show.html.slim
Normal file
@@ -0,0 +1,50 @@
|
||||
h2 #{team.name}
|
||||
p #{team.season_name}
|
||||
div.u-spaceBottomMd
|
||||
a.Button.u-spaceSidesXs href="#{url_for event_list_path}"
|
||||
<svg viewBox="0 0 960 960" role="presentation" class="Icon">
|
||||
<path d="M890 131c11.3 2.7 20.5 8.3 27.5 17s10.5 18.7 10.5 30v699c0 11.3-3.5 21.3-10.5 30s-16.2 14.3-27.5 17l-8 2c-4.7.7-11 1.7-19 3s-17.7 3-29 5-24.3 3.8-39 5.5-30.5 3.5-47.5 5.5-35.7 4-56 6-41.3 3.7-63 5-45.3 2.3-71 3-51.5 1-77.5 1-51.8-.3-77.5-1-49.3-1.7-71-3-42.7-3-63-5-39-4-56-6-32.8-3.8-47.5-5.5-27.7-3.5-39-5.5-21-3.7-29-5-14.3-2.3-19-3l-8-2c-11.3-2.7-20.5-8.3-27.5-17S32 888.3 32 877V178c0-11.3 3.5-21.3 10.5-30s16.2-14.3 27.5-17c.7 0 4.5-.7 11.5-2s17.8-3.2 32.5-5.5 30-4.5 46-6.5v43c0 23.3 8.3 42.5 25 57.5s36.7 22.5 60 22.5c-14-12.7-21-28.7-21-48V64c0-17.3 6.3-32.3 19-45s27.7-19 45-19 32.3 6.3 45 19 19 27.7 19 45v35c40-2 82.7-3 128-3 28.7 0 50 .3 64 1v63c0 23.3 8.3 42.5 25 57.5s36.7 22.5 60 22.5c-14-12.7-21-28.7-21-48V64c0-17.3 6.3-32.3 19-45s27.7-19 45-19 32.3 6.3 45 19 19 27.7 19 45v45c64 6.7 115.3 14 154 22zM480 869c122.7 0 240-9.3 352-28V384H128v457c112 18.7 229.3 28 352 28zm256-421v128H608V448h128zm-192 0v128H416V448h128zm0 320H416V640h128v128zm-192 0H224V640h128v128zm384 0H608V640h128v128z"></path>
|
||||
</svg>
|
||||
| Events
|
||||
a.Button.u-spaceSidesXs href="/${team.id}/members"
|
||||
<svg viewBox="0 0 960 960" class="Icon"><path d="M959 714c2 8 .7 16-4 24-5.3 7.3-12.3 11.7-21 13-9.3 4.7-66.7 8.3-172 11-28.7-60.7-73.3-109.7-134-147-17.3-10-39-19.7-65-29-6.7-3.3-12-5.7-16-7 31.3-49.3 52.3-97 63-143s13.5-84.3 8.5-115-15.2-58.3-30.5-83c-28-47.3-63.3-80.7-106-100 18.7-24 37.2-41.7 55.5-53S579 68 607 68c33.3 0 63.7 7.7 91 23s49.3 36.7 66 64c43.3 71.3 32.3 157.7-33 259-20 28.7-27.7 50.7-23 66 2 7.3 8 14.5 18 21.5s18.7 12.2 26 15.5 19.3 8.3 36 15c26 10.7 43.7 18.7 53 24 64.7 39.3 104 92 118 158zM352 892c-70 0-132-1-186-3s-90.2-4-108.5-6-28.8-3.3-31.5-4c-8.7-.7-15.7-5-21-13-4.7-6.7-6-14.7-4-24 14-66 53-118.7 117-158 8-4.7 25.7-12.7 53-24 16.7-6.7 28.7-11.7 36-15s16-8.5 26-15.5 16-14.2 18-21.5c4.7-14.7-2.7-36.7-22-66-65.3-102-76.7-188.3-34-259 16.7-27.3 38.8-48.7 66.5-64s57.8-23 90.5-23c33.3 0 63.8 7.7 91.5 23s49.8 36.7 66.5 64c42.7 70.7 31.3 157-34 259-19.3 29.3-26.7 51.3-22 66 2 7.3 8 14.5 18 21.5s18.7 12.2 26 15.5 19.3 8.3 36 15c27.3 11.3 45 19.3 53 24 63.3 39.3 102.7 92 118 158 2 8.7.3 16.7-5 24-5.3 8-12.3 12.3-21 13-2.7.7-13.3 2-32 4s-55 4-109 6-116 3-186 3z"></path></svg>
|
||||
| Roster
|
||||
a.Button.u-spaceSidesXs href="#{url_for opponent_list_path}"
|
||||
<svg viewBox="0 0 960 960" class="Icon"><path d="M959 628c2 6.7.7 13.7-4 21s-10.7 11.3-18 12l-7 1c-4.7.7-11.8 1.5-21.5 2.5s-21.5 2-35.5 3-33.2 1.8-57.5 2.5-50.8 1.3-79.5 2c-6-4.7-12.7-9.2-20-13.5s-15.2-9-23.5-14S678 635.7 674 633c-10.7-5.3-21-11.3-31-18 70-92.7 84-184.7 42-276-16.7-36-40-64-70-84s-62.7-32.3-98-37c0-23.3 5.3-47.3 16-72 12.7-28 32-48.7 58-62s53-20 81-20 55 6.7 81 20 45.3 34 58 62c32 70 16.3 141.7-47 215-19.3 22.7-18 46.3 4 71 6.7 8 26.2 21.3 58.5 40s55.2 32.7 68.5 42c7.3 5.3 13.8 10.2 19.5 14.5s10.5 9.3 14.5 15 7.2 10 9.5 13 4.7 8.2 7 15.5 3.8 12.3 4.5 15 2.2 9.2 4.5 19.5 3.8 17.5 4.5 21.5zm-673 5c-4 2.7-10.2 6.5-18.5 11.5s-16.2 9.7-23.5 14-14 8.8-20 13.5c-20.7 0-40.3-.3-59-1s-34.7-1.3-48-2-25.3-1.3-36-2-19.5-1.3-26.5-2-12.8-1.3-17.5-2-8.3-1-11-1l-3-1c-7.3-.7-13.3-4.7-18-12-4.7-6-6-13-4-21 1.3-4.7 3-11.8 5-21.5s3.3-16.2 4-19.5 2.2-8.5 4.5-15.5 4.7-12 7-15S27 549.3 31 544s8.7-10.3 14-15 12-9.7 20-15c14-10 37-24.3 69-43s51.3-31.7 58-39c22-24.7 23.3-48.3 4-71-63.3-73.3-79-145-47-215 12.7-28 32-48.7 58-62s53-20 81-20 55 6.7 81 20 45.3 34 58 62c10.7 24.7 16 48.7 16 72-80 11.3-136.3 51.7-169 121-41.3 91.3-27 183.3 43 276-2.7 2-5.7 4-9 6s-7.2 4.2-11.5 6.5-7.5 4.2-9.5 5.5h-1zm194 263c-28 0-54.5-.2-79.5-.5s-46.2-.8-63.5-1.5-33-1.5-47-2.5-25.5-1.8-34.5-2.5-16.5-1.3-22.5-2-10.3-1-13-1l-5-1c-7.3-.7-13.3-4.7-18-12-4.7-6-6-13-4-21 1.3-4.7 3-11.8 5-21.5s3.3-16.2 4-19.5 2.2-8.5 4.5-15.5 4.7-12 7-15 5.5-7.2 9.5-12.5 8.7-10.3 14-15 12-9.7 20-15c14-10 37-24.3 69-43s51.3-31.7 58-39c22-24.7 23.3-48.3 4-71-63.3-73.3-79-145-47-215 12.7-28 32-48.7 58-62s53-20 81-20 55 6.7 81 20 45.3 34 58 62c32 70 16.3 141.7-47 215-19.3 22.7-18 46.3 4 71 6.7 8 26.2 21.3 58.5 40s55.2 32.7 68.5 42c16.7 12 29 23.2 37 33.5s13.5 21.7 16.5 34S763 833.3 767 852c2 7.3.7 14.3-4 21-4.7 7.3-10.7 11.3-18 12l-5 1c-2.7 0-7 .3-13 1s-13.5 1.3-22.5 2-20.7 1.5-35 2.5-30.2 1.8-47.5 2.5-38.3 1.2-63 1.5-51 .5-79 .5z"></path></svg>
|
||||
| Opponents
|
||||
div.u-maxWidthSm
|
||||
.Panel
|
||||
.Panel-header
|
||||
h2.Panel-title Upcoming Events
|
||||
.Panel-body.u-padSm
|
||||
- for event in upcoming_events
|
||||
div.event-card
|
||||
div.event-card-body
|
||||
h3.title #{event.formatted_title}
|
||||
div.date #{event.start_date.strftime("%a, %b %e, %l:%M %p")}
|
||||
div.location #{event.location_name}
|
||||
div.availability-bar.fullwidth=render("event/availability_bar", team:team, event:event, availability_summary: availability_summaries.find{|a| a.id==event.id})
|
||||
div.event-card-footer.Grid
|
||||
div.Grid-cell.u-sizeFill
|
||||
a.Button href=url_for(event_path :team_id=>team.id, :event_id=>event.id)
|
||||
i.bi.bi-calendar
|
||||
span.u-hidden.u-xs-inline Details
|
||||
div.Grid-cell.u-sizeFill
|
||||
a(class="Button" href=url_for(event_lineup_path :team_id => team.id, :event_id => event.id))
|
||||
i(class="bi bi-clipboard")
|
||||
span.u-hidden.u-xs-inline Lineup
|
||||
div.Grid-cell.u-sizeFill
|
||||
a(class="Button" href=url_for(event_lineup_card_path :team_id => team.id, :event_id => event.id))
|
||||
i(class="bi bi-book")
|
||||
span.u-hidden.u-xs-inline Card
|
||||
div.Grid-cell.u-sizeFill
|
||||
a(class="Button" href="https://go.teamsnap.com/#{team.id}/schedule/view_game/#{event.id}")
|
||||
i(class="bi bi-asterisk")
|
||||
span.u-hidden.u-xs-inline TeamSnap
|
||||
.Panel
|
||||
.Panel-header
|
||||
h3.Panel-title Past Events
|
||||
.Panel-body
|
||||
ul
|
||||
- for event in past_events
|
||||
li #{event.formatted_title}
|
||||
Reference in New Issue
Block a user