Skip to content

Commit

Permalink
Merge pull request #11754 from nanaya/mystery-container
Browse files Browse the repository at this point in the history
Remove redundant container
  • Loading branch information
notbakaneko authored Dec 18, 2024
2 parents f8b6578 + b70e5cc commit a32c9de
Showing 1 changed file with 89 additions and 91 deletions.
180 changes: 89 additions & 91 deletions resources/views/teams/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,114 +25,112 @@
'backgroundImage' => $headerUrl,
]])

<div class="osu-layout osu-layout--full">
<div class="osu-page osu-page--generic-compact">
<div class="profile-info profile-info--cover profile-info--team">
<div
class="profile-info__bg profile-info__bg--team"
{!! background_image($headerUrl) !!}
>
@if (priv_check('TeamUpdate', $team)->can())
<div class="profile-page-cover-editor-button">
<a
class="btn-circle btn-circle--page-toggle"
data-tooltip-position="left center"
href="{{ route('teams.members.index', $team) }}"
title="{{ osu_trans('teams.members.index.title') }}"
>
<span class="fa fa-users"></span>
</a>
<div class="osu-page osu-page--generic-compact">
<div class="profile-info profile-info--cover profile-info--team">
<div
class="profile-info__bg profile-info__bg--team"
{!! background_image($headerUrl) !!}
>
@if (priv_check('TeamUpdate', $team)->can())
<div class="profile-page-cover-editor-button">
<a
class="btn-circle btn-circle--page-toggle"
data-tooltip-position="left center"
href="{{ route('teams.members.index', $team) }}"
title="{{ osu_trans('teams.members.index.title') }}"
>
<span class="fa fa-users"></span>
</a>

<a
class="btn-circle btn-circle--page-toggle"
data-tooltip-position="left center"
href="{{ route('teams.edit', $team) }}"
title="{{ osu_trans('teams.edit.title') }}"
>
<span class="fa fa-wrench"></span>
</a>
</div>
@endif
</div>
<div class="profile-info__details">
<div class="profile-info__avatar">
@include('objects._flag_team', ['modifiers' => 'full', 'team' => $team])
<a
class="btn-circle btn-circle--page-toggle"
data-tooltip-position="left center"
href="{{ route('teams.edit', $team) }}"
title="{{ osu_trans('teams.edit.title') }}"
>
<span class="fa fa-wrench"></span>
</a>
</div>
<div class="profile-info__info">
<h1 class="profile-info__name">
{{ $team->name }}
</h1>
<div class="profile-info__flags">
<p class="profile-info__flag">
[{{ $team->short_name }}]
</p>
</div>
@endif
</div>
<div class="profile-info__details">
<div class="profile-info__avatar">
@include('objects._flag_team', ['modifiers' => 'full', 'team' => $team])
</div>
<div class="profile-info__info">
<h1 class="profile-info__name">
{{ $team->name }}
</h1>
<div class="profile-info__flags">
<p class="profile-info__flag">
[{{ $team->short_name }}]
</p>
</div>
</div>
</div>
<div class="user-profile-pages user-profile-pages--no-tabs">
<div class="page-extra u-fancy-scrollbar">
<div class="team-summary">
<div class="team-summary__sidebar">
<h2 class="title title--page-extra-small title--page-extra-small-top">
{{ osu_trans('teams.show.sections.info') }}
</h2>
<div class="team-info-entries">
</div>
<div class="user-profile-pages user-profile-pages--no-tabs">
<div class="page-extra u-fancy-scrollbar">
<div class="team-summary">
<div class="team-summary__sidebar">
<h2 class="title title--page-extra-small title--page-extra-small-top">
{{ osu_trans('teams.show.sections.info') }}
</h2>
<div class="team-info-entries">
<div class="team-info-entry">
<div class="team-info-entry__title">{{ osu_trans('teams.show.info.created') }}</div>
<div class="team-info-entry__value">
{{ i18n_date($team->created_at, pattern: 'year_month') }}
</div>
</div>
@if (present($team->url))
<div class="team-info-entry">
<div class="team-info-entry__title">{{ osu_trans('teams.show.info.created') }}</div>
<div class="team-info-entry__title">{{ osu_trans('teams.show.info.website') }}</div>
<div class="team-info-entry__value">
{{ i18n_date($team->created_at, pattern: 'year_month') }}
<span class="u-ellipsis-overflow">
<a href="{{ $team->url }}">{{ $team->url }}</a>
</span>
</div>
</div>
@if (present($team->url))
<div class="team-info-entry">
<div class="team-info-entry__title">{{ osu_trans('teams.show.info.website') }}</div>
<div class="team-info-entry__value">
<span class="u-ellipsis-overflow">
<a href="{{ $team->url }}">{{ $team->url }}</a>
</span>
</div>
</div>
@endif
@endif
</div>
<h2 class="title title--page-extra-small title--page-extra-small-top">
{{ osu_trans('teams.show.sections.members') }}
</h2>
<div class="team-summary__members">
<div class="team-members team-members--owner">
<div class="team-members__meta">
{{ osu_trans('teams.show.members.owner') }}
</div>
<div
class="js-react--user-card u-contents"
data-user="{{ json_encode($teamMembers['leader'][0]) }}"
></div>
</div>
<h2 class="title title--page-extra-small title--page-extra-small-top">
{{ osu_trans('teams.show.sections.members') }}
</h2>
<div class="team-summary__members">
<div class="team-members team-members--owner">
<div class="team-members__meta">
{{ osu_trans('teams.show.members.owner') }}
</div>

<div class="team-members">
<div class="team-members__meta">
<span>
{{ osu_trans('teams.show.members.members') }}
</span>
<span>
{{ i18n_number_format(count($teamMembers['member'])) }}
</span>
</div>
@foreach ($teamMembers['member'] as $memberJson)
<div
class="js-react--user-card u-contents"
data-user="{{ json_encode($teamMembers['leader'][0]) }}"
data-user="{{ json_encode($memberJson) }}"
></div>
</div>

<div class="team-members">
<div class="team-members__meta">
<span>
{{ osu_trans('teams.show.members.members') }}
</span>
<span>
{{ i18n_number_format(count($teamMembers['member'])) }}
</span>
</div>
@foreach ($teamMembers['member'] as $memberJson)
<div
class="js-react--user-card u-contents"
data-user="{{ json_encode($memberJson) }}"
></div>
@endforeach
</div>
@endforeach
</div>
</div>
</div>

<div class="team-summary__sidebar team-summary__sidebar--separator"></div>
<div class="team-summary__sidebar team-summary__sidebar--separator"></div>

<div>
{!! $team->descriptionHtml() !!}
</div>
<div>
{!! $team->descriptionHtml() !!}
</div>
</div>
</div>
Expand Down

0 comments on commit a32c9de

Please sign in to comment.