Skip to content

Commit

Permalink
Merge pull request #512 from itscoretf/ozfortress
Browse files Browse the repository at this point in the history
September update
  • Loading branch information
BenjaminSchaaf authored Oct 13, 2022
2 parents c01daca + 428a139 commit a276d59
Show file tree
Hide file tree
Showing 29 changed files with 175 additions and 112 deletions.
2 changes: 1 addition & 1 deletion app/presenters/user_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def titles(options = {})
has_captain_label = team && user.can?(:edit, team) && user.can?(:use, :teams)

titles = []
titles << content_tag(:span, 'captain', class: 'badge badge-danger') if has_captain_label
titles << content_tag(:span, 'Captain', class: 'badge badge-danger') if has_captain_label
titles << badge if user.badge?
safe_join(titles, ' ')
end
Expand Down
8 changes: 5 additions & 3 deletions app/views/admin/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
= link_to 'Maps', meta_maps_path, class: 'list-group-item'

.card.mb-3
.card-header External
%li.list-group-item
= link_to 'Source Server Controller', 'https://ssc.imconnor.xyz/', target: :_blank, rel: :noopener
.card-header Easy Access
%ul.list-group.list-group-flush
%li.list-group-item= link_to 'Staff Applications', 'https://ozfortress.com/forums/topics/24', target: :_blank, rel: :noopener
%li.list-group-item= link_to 'News', 'https://ozfortress.com/forums/topics/2', target: :_blank, rel: :noopener
%li.list-group-item= link_to 'Ban Appeals', 'https://forms.gle/3CbDmeBq2U35YAcR9', target: :_blank, rel: :noopener
74 changes: 58 additions & 16 deletions app/views/application/_navbar.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,72 @@

%li.nav-item.dropdown
%a.nav-link.dropdown-toggle{ role: :button, data: { toggle: :dropdown } }
About
Rules
%span.caret

.dropdown-menu
= link_to('Rules', :rules, class: 'dropdown-item')
= link_to('Community Rules', :community_rules, class: 'dropdown-item')
= link_to('Infractions', :infractions, class: 'dropdown-item')
= link_to('Staff', :staff, class: 'dropdown-item')
= link_to('Bans', :bans, class: 'dropdown-item')
= link_to('Anti-Cheat and You', :anticheat_and_you, class: 'dropdown-item')
.dropdown-menu.dropdown-menu-animated#rules-dropdown-menu
.dropdown-header
Competitive Rulesets

= link_to('Global Ruleset', 'https://docs.ozfortress.com/rules/global/index', class: 'dropdown-item')
= link_to('Sixes Ruleset', 'https://docs.ozfortress.com/rules/sixes/index', class: 'dropdown-item')
= link_to('Highlander Ruleset', 'https://docs.ozfortress.com/rules/highlander/index', class: 'dropdown-item')

.dropdown-divider

.dropdown-header
Community

= link_to('Community Guidelines', 'https://docs.ozfortress.com/rules/community_guidelines/index', class: 'dropdown-item')
= link_to('Infractions', 'https://docs.ozfortress.com/rules/infractions/index', class: 'dropdown-item')

:javascript
// Prevent inside clicks from dismissing dropdown
$("#rules-dropdown-menu").click(function(e) {
e.stopPropagation()
})


%li.nav-item.dropdown
%a.nav-link.dropdown-toggle{ role: :button, data: { toggle: :dropdown } }
Help
%span.caret

.dropdown-menu
= link_to('Server Configs', :server_configs, class: 'dropdown-item')
= link_to('Book a Server', :book_server, class: 'dropdown-item')
= link_to('Newbie Guide', :newbie_guide, class: 'dropdown-item')
= link_to('Transfers', :transfers, class: 'dropdown-item')
= link_to('Verify Rosters', 'https://verify.ozfortress.com', target: :_blank, rel: :noopener,
class: 'dropdown-item')
= link_to('Demos', 'https://demos.tf/uploads/76561198049618390', target: :_blank, rel: :noopener, class: 'dropdown-item')
.dropdown-menu.dropdown-menu-animated#help-dropdown-menu
.dropdown-header
General Info

= link_to('Staff', 'https://docs.ozfortress.com/info/staff/index', class: 'dropdown-item')
= link_to('Map History', 'https://docs.ozfortress.com/info/map_history/index', class: 'dropdown-item')
= link_to('Anti-Cheat and You', 'https://docs.ozfortress.com/info/anticheat_and_you/index', class: 'dropdown-item')

.dropdown-divider

.dropdown-header
Guides

= link_to('Book a Server', 'https://docs.ozfortress.com/guides/book_a_server/index', class: 'dropdown-item')
= link_to('Newbie Guide', 'https://docs.ozfortress.com/guides/newbie_guide/index', class: 'dropdown-item')

.dropdown-divider

.dropdown-header
Other

= link_to('Verify Rosters tool', 'https://verify.ozfortress.com', target: :_blank, rel: :noopener, class: 'dropdown-item')
= link_to('STV Demos', 'https://demos.tf/uploads/76561198049618390', target: :_blank, rel: :noopener, class: 'dropdown-item')

:javascript
// Prevent inside clicks from dismissing dropdown
$("#help-dropdown-menu").click(function(e) {
e.stopPropagation()
})

%li.nav-item
= link_to('Support & Reporting', 'https://docs.ozfortress.com/support/landing/index', target: :_blank, rel: :noopener, class: 'nav-link')

%li.nav-item
= link_to('Docs', 'https://docs.ozfortress.com/index', target: :_blank, rel: :noopener, class: 'nav-link')

- if user_signed_in? && current_user.admin?
%li.nav-item{ class: navbar_class(:admin) }
Expand Down
10 changes: 5 additions & 5 deletions app/views/application/_sidebar.html.haml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.card
.card-header External Links
.card-header Socials
%ul.list-group.list-group-flush
%li.list-group-item
= link_to 'https://discord.gg/7E6kC2H', target: '_blank', rel: :noopener do
= image_tag 'discord-logo.png', width: 32
Join our Discord
%li.list-group-item
= link_to 'https://www.patreon.com/ozfortress/', target: '_blank', rel: :noopener do
= image_tag 'patreon-logo.png', width: 32
Support us on Patreon
%li.list-group-item
= link_to 'http://twitter.com/ozfortress', target: '_blank', rel: :noopener do
= image_tag 'twitter-logo.png', width: 32
Follow us on Twitter
%li.list-group-item
= link_to 'https://www.patreon.com/ozfortress/', target: '_blank', rel: :noopener do
= image_tag 'patreon-logo.png', width: 32
Support us on Patreon
%li.list-group-item
= link_to 'https://www.youtube.com/channel/UCKnMgeTAHzdttd8TXE9UOgw', target: '_blank', rel: :noopener do
= image_tag 'youtube-logo.png', width: 32
Expand Down
21 changes: 20 additions & 1 deletion app/views/leagues/matches/_match_comms.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.card.mb-3#match-comms
.card-header
Match Comms
Match Communications (Match Comms)

.card-body.p-0
- comms.each do |comm|
Expand All @@ -16,3 +16,22 @@

.d-flex.justify-content-end
= f.primary 'Post'

.card-header Post Guidelines
.card-body
%p
Please ensure your posts in Match Communications
%b does not
contain the following:
%ul
%li Anything unrelated to the match. This is an infractable offence.
%li Anything that violates our Community Guidelines.

.card-header Expected Match Details
.card-body
%p Your Match Communications should (by the end of that round) contain:
%ul
%li The agreed upon, scheduled match day and time.
%li Indication as to which team won what map.
%li logs.tf links for each map, which you can find easily via your ozfortress.com profile.
%li Any mercenaries used within the match (it is expected that each team declares their approved mercenaries here).
4 changes: 2 additions & 2 deletions app/views/leagues/matches/_schedule.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- if league.schedule == 'weeklies'
.card.mb-3
.card-header Availability
.card-header Shared Availability
.card-body
Schedule suggestions (based on availability):
Schedule suggestions (based on both team's shared availability):
%b= league.scheduler.common_schedule(match.home_team, match.away_team).join(', ')
3 changes: 1 addition & 2 deletions app/views/leagues/matches/comms/_comm.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
- if user_can_edit_comm?(comm)
= link_to 'Edit', comm.paths.edit, class: 'dropdown-item'

- if user_can_edit_comm?(comm) && comm.edits.size > 1
= link_to 'History', comm.paths.edits, class: 'dropdown-item'
= link_to 'History', comm.paths.edits, class: 'dropdown-item'

.card-body
.markdown.pb-3
Expand Down
2 changes: 1 addition & 1 deletion app/views/leagues/matches/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@


.card.mb-3
.card-header Results #{match_p.status}
.card-header Picks/Bans #{match_p.status}

- can_view_scores = [email protected]? && user_can_either_teams? && @league.matches_submittable?
- if can_view_scores || user_can_edit_league?
Expand Down
11 changes: 11 additions & 0 deletions app/views/leagues/rosters/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@
= link_to 'Cancel', team_path(@roster.team), class: 'btn btn-link mr-2'
= f.primary 'Update'

.card-header Roster Content Guidelines
.card-body
%p
Your roster name
%b can not
contain the following:
%ul
%li Emojis or special characters.
%li Blank characters or characters to otherwise break the name field.
%li Links/URLs.
%li Anything that violates our Community Guidelines.

= render 'leagues/rosters/transfers/index',
league: @league, roster: @roster, new_transfer_request: @transfer_request,
Expand Down
5 changes: 0 additions & 5 deletions app/views/pages/anticheat_and_you.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/bans.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/book_server.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/community_rules.html.haml

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/pages/home.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.row.justify-content-center.mb-4
= image_tag 'logo.svg', width: '340px'

- if @topic
%h1 News

Expand Down
5 changes: 0 additions & 5 deletions app/views/pages/infractions.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/newbie_guide.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/rules.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/server_configs.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/staff.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/transfers.html.haml

This file was deleted.

14 changes: 14 additions & 0 deletions app/views/teams/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@

= f.primary 'Save'

.card-header Team Content Guidelines
.card-body
%p
Your team page (name, avatar/logo and description)
%b can not
contain the following:
%ul
%li Emojis or special characters. (Name only)
%li Blank characters or characters to otherwise break the name/description fields.
%li Links/URLs. (Name only)
%li Nudity or Sexual Content.
%li Inappropriate or Not Safe for Work memes.
%li Blank characters or characters to otherwise break the description field.
%li Anything that violates our Community Guidelines.

- unless @team.rosters.exists?
.alert.alert-danger.mb-3
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/_show_admin_comments.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.alert.alert-admin.mb-3
%label.font-weight-bold.alert-heading
Admin Comments
Admin Comments (Only visible for administrators)

%hr.mt-0

Expand Down
35 changes: 34 additions & 1 deletion app/views/users/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,35 @@
%hr

.card.mb-3
.card-header Change Name
.card-header Change your ozfortress.com name
.card-body
= bootstrap_form_for @name_change, url: name_user_path(@user),
method: :post, as: :name_change do |f|
= f.text_field :name, hide_label: true

= f.primary 'Request Name Change'

.card-header Name Change Request Guidelines
.card-body
%p
Your name
%b can not
contain the following:
%ul
%li Emojis or special characters.
%li Blank characters or characters to otherwise break the name field.
%li Links/URLs.
%li Anything that violates our Community Guidelines.
%br/
%p
The following
%b may
result in your Name Change Request being denied:
%ul
%li Inappropriate or Not Safe for Work memes/meme names.
%li Non-emoji faces without a name next to them.
%li Obscured or otherwise "sneaky" references to anything that breaks our Community Guidelines.

.card.mb-3
.card-header General
.card-body
Expand All @@ -25,6 +46,18 @@
= link_to 'Cancel', user_path(@user), class: 'btn btn-link mr-2'
= f.primary 'Save'

.card-header Profile Content Guidelines
.card-body
%p
Your profile (avatar and description)
%b can not
contain the following:
%ul
%li Nudity or Sexual Content.
%li Inappropriate or Not Safe for Work memes.
%li Blank characters or characters to otherwise break the description field.
%li Anything that violates our Community Guidelines.

- if user_can_edit_users?
.card.border-danger.mb-3
.card-header.text-white.bg-danger Admin Only
Expand Down
2 changes: 2 additions & 0 deletions app/views/users/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
.d-flex.justify-content-end
= link_to 'Cancel', :back, class: 'btn btn-link mr-2'
= f.submit 'Register'

%p By signing up, you are agreeing to our Community Guidelines & User Policy.
Loading

0 comments on commit a276d59

Please sign in to comment.