Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant container #11754

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading