diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-05-31 09:31:18 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 10:08:54 +0200 |
commit | bf6c0346d8d35a719dd1bff1cb4d573d422f99ff (patch) | |
tree | 04fb80e20ad1cffacb72357a632a9afe2ec058cb /src/Wallabag/FederationBundle/Resources/views/themes/material/User/profile_header.html.twig | |
parent | d6d3f4ec3698effd1d4b063e295341791bdcf7d7 (diff) | |
download | wallabag-bf6c0346d8d35a719dd1bff1cb4d573d422f99ff.tar.gz wallabag-bf6c0346d8d35a719dd1bff1cb4d573d422f99ff.tar.zst wallabag-bf6c0346d8d35a719dd1bff1cb4d573d422f99ff.zip |
WIPfederation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/FederationBundle/Resources/views/themes/material/User/profile_header.html.twig')
-rw-r--r-- | src/Wallabag/FederationBundle/Resources/views/themes/material/User/profile_header.html.twig | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Wallabag/FederationBundle/Resources/views/themes/material/User/profile_header.html.twig b/src/Wallabag/FederationBundle/Resources/views/themes/material/User/profile_header.html.twig new file mode 100644 index 00000000..703de79f --- /dev/null +++ b/src/Wallabag/FederationBundle/Resources/views/themes/material/User/profile_header.html.twig | |||
@@ -0,0 +1,35 @@ | |||
1 | {% set usershow = user.username %} | ||
2 | {% if user.user.name is not null %} | ||
3 | {% set usershow = user.user.name %} | ||
4 | {% endif %} | ||
5 | |||
6 | <p> | ||
7 | {{ usershow }} utilise wallabag pour lire et archiver son contenu. Vous pouvez le/la suivre et interagir si vous possédez un compte quelque part dans le "fediverse". Si ce n'est pas le cas, vous pouvez en créer un ici. | ||
8 | </p> | ||
9 | <div class="card grey lighten-5 z-depth-1 profile"> | ||
10 | <div class="card-content"> | ||
11 | <img src="{{ asset('uploads/media/avatar/') ~ user.avatar }}" alt="" class="circle responsive-img center-block avatar"> | ||
12 | <h3 class="center-align">{{ usershow }}</h3> | ||
13 | <h6 class="center-align">@{{ user.username }}</h6> | ||
14 | <a class="btn-floating btn-large halfway-fab waves-effect waves-light red" href="{{ path('follow-user', {'userToFollow': user.username}) }}"><i class="material-icons">person_add</i></a> | ||
15 | <div class="details"> | ||
16 | <div class="bio"> | ||
17 | <p>{{ user.description }}</p> | ||
18 | </div> | ||
19 | <div class="details-counters"> | ||
20 | <div class="counter"> | ||
21 | <a href="{{ path('followers', {'user': user.username}) }}"> | ||
22 | <span class="counter-label">Followers</span> | ||
23 | <span class="counter-number">{{ user.followers | length }}</span> | ||
24 | </a> | ||
25 | </div> | ||
26 | <div class="counter"> | ||
27 | <a href="{{ path('following', {'user': user.username}) }}"> | ||
28 | <span class="counter-label">Following</span> | ||
29 | <span class="counter-number">{{ user.following | length }}</span> | ||
30 | </a> | ||
31 | </div> | ||
32 | </div> | ||
33 | </div> | ||
34 | </div> | ||
35 | </div> | ||