Commit 5ceb45ff authored by Zéfling's avatar Zéfling 🎨
Browse files

Change the HTML autoformating

parent f253ac25
<div *ngIf="tweets" class="tweets-total">
<div *ngIf="tweets"
class="tweets-total">
<span>
Total : {{tweets.total}} tweet{{tweets.total > 0 ? 's' : ''}}
</span>
</div>
<nav *ngIf="tweets" class="calendar">
<ul *ngFor="let years of (tweets.calendar | ngForObject)" class="years">
<nav *ngIf="tweets"
class="calendar">
<ul *ngFor="let years of (tweets.calendar | ngForObject)"
class="years">
<li>
<div>{{years.key}}</div>
<ul class="months">
<li *ngFor="let month of ( years.value | ngForObject)" (click)="month.value.total > 0 ? show(month.value) : null"
[class.clickable]="month.value.total > 0" [class.disabled]="!month.value.enabled" [class.selected]="month.value.selected"
title="{{month.value.month | mouth}} - {{month.value.total}} tweet{{month.value.total > 0 ? 's' : ''}}">
<span *ngIf="month.value.total > 0" [style.height.px]="month.value.total / tweets.maxMonth * 40"></span>
<li *ngFor="let month of ( years.value | ngForObject)"
(click)="month.value.total > 0 ? show(month.value) : null"
[class.clickable]="month.value.total > 0"
[class.disabled]="!month.value.enabled"
[class.selected]="month.value.selected"
title="{{month.value.month | mouth}} - {{month.value.total}} tweet{{month.value.total > 0 ? 's' : ''}}">
<span *ngIf="month.value.total > 0"
[style.height.px]="month.value.total / tweets.maxMonth * 40"></span>
</li>
</ul>
</li>
</ul>
</nav>
<div *ngIf="month" class="tweets-month">
<div *ngIf="month"
class="tweets-month">
<span>
{{month.month | mouth}} {{month.year}} - {{month.total}} tweet{{month.total > 0 ? 's' : ''}}
</span>
</div>
<div *ngIf="month" class="tweets">
<section *ngFor="let tweet of month.tweets" class="tweet" [class.retweet]="">
<div *ngIf="month"
class="tweets">
<section *ngFor="let tweet of month.tweets"
class="tweet"
[class.retweet]="">
<div class="tweet-infos">
<a href="https://twitter.com/{{tweet.user_screen_name}}">{{tweet.user_name}}</a>
<time class="tweet-date">{{tweet.created_date | date:'yyyy-MM-dd HH:mm:ss'}}</time>
</div>
<div class="tweet-text" [innerHTML]="tweet.full_text"></div>
<div class="tweet-media" *ngIf="testImage(tweet.entities.media)">
<img *ngFor="let media of tweet.entities.media" [src]="imageUrl(tweet, media)" [alt]="media.id" (click)="openImage(media)">
<div class="tweet-text"
[innerHTML]="tweet.full_text"></div>
<div class="tweet-media"
*ngIf="testImage(tweet.entities.media) | safe">
<img *ngFor="let media of tweet.entities.media"
[src]="imageUrl(tweet, media)"
[alt]="media.id"
(click)="openImage(media)">
</div>
<div class="tweet-media" *ngIf="testVideo(tweet.entities.media)">
<video controls *ngFor="let media of tweet.entities.media" [src]="videoUrl(tweet, media)"></video>
<div class="tweet-media"
*ngIf="testVideo(tweet.entities.media)">
<video controls
*ngFor="let media of tweet.entities.media"
[src]="videoUrl(tweet, media)"></video>
</div>
<div class="tweet-actions">
<span *ngIf="tweet.retweeted">retweeted: {{tweet.retweet_count}}</span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment