Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
socialblue
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
socialblue
Commits
aecccddc
Commit
aecccddc
authored
5 years ago
by
Taras Kruts
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3083877
by ribel: Add profile statistic block
parent
f70ff83b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/profile/profile--profile--hero--sky.html.twig
+22
-0
22 additions, 0 deletions
templates/profile/profile--profile--hero--sky.html.twig
templates/profile/profile--profile--statistic--sky.html.twig
+51
-0
51 additions, 0 deletions
templates/profile/profile--profile--statistic--sky.html.twig
with
73 additions
and
0 deletions
templates/profile/profile--profile--hero--sky.html.twig
0 → 100644
+
22
−
0
View file @
aecccddc
{{
attach_library
(
'socialbase/hero'
)
}}
{{
attach_library
(
'socialblue/hero--sky'
)
}}
{%
if
profile_hero_styled_image_url
%}
<div
style=
"background-image: url('
{{
profile_hero_styled_image_url
}}
')"
class=
"cover cover-img cover-img-gradient"
>
{%
else
%}
<div
class=
"cover"
>
{%
endif
%}
<div
class=
"hero__bgimage-overlay"
></div>
{%
if
profile_edit_url
%}
<div
class=
"hero-action-button"
>
<a
href=
"
{{
profile_edit_url
}}
"
title=
"
{%
trans
%}
Edit profile information
{%
endtrans
%}
"
class=
"btn btn-raised btn-default btn-floating"
>
<svg
class=
"icon-medium"
>
<use
xlink:href=
"#icon-edit"
></use>
</svg>
</a>
</div>
{%
endif
%}
<div
class=
"cover-wrap"
>
</div>
</div>
This diff is collapsed.
Click to expand it.
templates/profile/profile--profile--statistic--sky.html.twig
0 → 100644
+
51
−
0
View file @
aecccddc
{{
attach_library
(
'socialbase/hero'
)
}}
<div
class=
"card__info-user"
>
{{
content.field_profile_image
}}
<h2
class=
"card__info-user--name"
>
{{
profile_name
}}
{{
profile_name_extra
}}
</h2>
<div
class=
"card__info-user--about"
>
<div
class=
"card__info-user--about-job"
>
{{
content.field_profile_function
}}
</div>
<div
class=
"card__info-user--about-organization"
>
{{
content.field_profile_organization
}}
</div>
<div
class=
"card__info-user--about-address"
>
{{
content
|
without
(
'field_profile_first_name'
,
'field_profile_last_name'
,
'field_profile_image'
,
'field_profile_function'
,
'field_profile_organization'
)
}}
</div>
</div>
</div>
<div
class=
"card__counter"
>
<ul>
<li>
<span
class=
"card__counter-quantity"
>
{{
profile_events
}}
</span>
<span
class=
"card__counter-text"
>
{%
trans
%}
event
{%
plural
profile_events
%}
events
{%
endtrans
%}
</span>
</li>
<li>
<span
class=
"card__counter-quantity"
>
{{
profile_topics
}}
</span>
<span
class=
"card__counter-text"
>
{%
trans
%}
topic
{%
plural
profile_topics
%}
topics
{%
endtrans
%}
</span>
</li>
<li>
<span
class=
"card__counter-quantity"
>
{{
profile_groups
}}
</span>
<span
class=
"card__counter-text"
>
{%
trans
%}
group
{%
plural
profile_groups
%}
groups
{%
endtrans
%}
</span>
</li>
</ul>
</div>
{%
if
profile_contact_label
==
'private_message'
%}
<div
class=
"hero-footer__cta"
>
<a
href=
"
{{
profile_contact_url
}}
"
class=
"btn btn-accent"
>
{%
trans
%}
Private message
{%
endtrans
%}
</a>
</div>
{%
elseif
profile_edit_url
%}
<div
class=
"hero-footer__cta"
>
<a
href=
"
{{
profile_edit_url
}}
"
title=
"
{%
trans
%}
Edit profile information
{%
endtrans
%}
"
class=
"btn btn-default"
>
{%
trans
%}
Edit profile
{%
endtrans
%}
</a>
</div>
{%
endif
%}
<footer
class=
"card__actionbar"
>
<a
href=
"
{{
profile_stream_url
}}
"
class=
"card__link card__link-arrow"
>
{%
trans
%}
See full stream
{%
endtrans
%}
</a>
</footer>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment