mirror of
https://github.com/arnaucube/decentralized-blogging-platform.git
synced 2026-02-07 11:26:43 +01:00
GetUsers, GetUser, NewPost, GetPosts, GetPost
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<a ng-href="#!/user/{{user.id}}" class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="o_card-body">
|
||||
<a ng-href="#!/user/{{post.user.id}}">
|
||||
<div class="row">
|
||||
<div style="display:block;margin-left:10px;margin-right:10px;">
|
||||
<img class="o_userImgCircular" ng-src="https://www.eyerys.com/sites/default/files/mark_zuckerberg.jpg" />
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div style="display:block; font-size:90%;">
|
||||
<b>{{user.name}} {{user.lastname}}</b>
|
||||
<div class="mb-2 text-muted">@{{user.username}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<a ng-href="#!/post/{{post.id}}" class="card-body">
|
||||
<a ng-href="#!/post/{{post.id}}" class="o_card-body">
|
||||
<img ng-src="{{post.img}}" class="img-fluid" />
|
||||
<br><br>
|
||||
<h5 class="card-title">{{post.title}}</h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted">{{post.subtitle}}</h6>
|
||||
<img ng-src="{{post.img}}" class="img-fluid" />
|
||||
<p class="card-text">{{post.content}}</p>
|
||||
<div class="pull-right">
|
||||
<i title="Server" class="fa fa-heart ct_red300 fa-1x"></i> 37
|
||||
|
||||
22
webapp/views/templates/user-thumb-template.html
Normal file
22
webapp/views/templates/user-thumb-template.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="card">
|
||||
<a ng-href="#!/user/{{user.id}}">
|
||||
<div class="o_userProfileBackground">
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<img class="o_userImgCircular o_profilePageImage" ng-src="https://www.eyerys.com/sites/default/files/mark_zuckerberg.jpg" />
|
||||
<h4>
|
||||
{{user.name}} {{user.lastname}}
|
||||
</h4>
|
||||
<h6 class="card-subtitle mb-2 text-muted">@{{user.username}}</h6>
|
||||
<p>{{user.description}}</p>
|
||||
<p>
|
||||
<a ng-href="#!/userLikes/{{user._id}}">
|
||||
14 followers
|
||||
</a> |
|
||||
<a ng-href="#!/userLikes/{{user._id}}">
|
||||
20 following
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user