+ timeline
This commit is contained in:
1 parent
0d6cf42c7f
commit
37d22b63ad
11 files changed
+183
-60
No files matched your search
+15
-14
@@ -1,16 +1,17 @@
|
||||
<div>
|
||||
<div class="feed" ng-controller="FeedController">
|
||||
<ul>
|
||||
<li ng-repeat="post in feed" class="post" ng-class="{instagram: post.type === 'instagram'}">
|
||||
<div class="user">
|
||||
<img ng-src="{{post.userpic}}" alt=""/>
|
||||
<span>{{post.username}}</span>
|
||||
</div>
|
||||
<div class="body">
|
||||
<p>{{post.text}}</p>
|
||||
<img ng-src="{{post.image}}" alt=""/>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<timeline></timeline>
|
||||
<!--<div class="feed" ng-controller="FeedController">-->
|
||||
<!--<ul>-->
|
||||
<!--<li ng-repeat="post in feed" class="post" ng-class="{instagram: post.type === 'instagram'}">-->
|
||||
<!--<div class="user">-->
|
||||
<!--<img ng-src="{{post.userpic}}" alt=""/>-->
|
||||
<!--<span>{{post.username}}</span>-->
|
||||
<!--</div>-->
|
||||
<!--<div class="body">-->
|
||||
<!--<p>{{post.text}}</p>-->
|
||||
<!--<img ng-src="{{post.image}}" alt=""/>-->
|
||||
<!--</div>-->
|
||||
<!--</li>-->
|
||||
<!--</ul>-->
|
||||
<!--</div>-->
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
<div class="timeline">
|
||||
<div class="post"
|
||||
ng-repeat="post in feed"
|
||||
ng-class="{left: isEven($index), right: !isEven($index)}">
|
||||
|
||||
<div class="head">
|
||||
<div class="user">
|
||||
<img ng-src="{{post.userpic}}" alt=""/>
|
||||
<span>{{post.username}}</span>
|
||||
</div>
|
||||
<p class="date">23.12.2012</p>
|
||||
</div>
|
||||
|
||||
<div class="body">
|
||||
<h2>Рисунок</h2>
|
||||
<p>{{post.text}}</p>
|
||||
<img ng-src="{{post.image}}" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user