write-tweet.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <ion-header>
  2. <ion-navbar>
  3. <ion-title>Tweet something</ion-title>
  4. </ion-navbar>
  5. </ion-header>
  6. <ion-content padding>
  7. <!-- Show tweet to retweet or quote (if passed to the page) -->
  8. <ion-label *ngIf="retweet" color="primary">Retweet</ion-label>
  9. <!-- <quoted-status *ngIf="retweet" [data]="retweet.data"></quoted-status> -->
  10. <quoted-status *ngIf="retweet" [data]="retweet"></quoted-status>
  11. <!-- Show tweet to reply to -->
  12. <ion-label *ngIf="replyTweet" color="primary">Reply to</ion-label>
  13. <!-- <quoted-status *ngIf="replyTweet" [data]="replyTweet.data"></quoted-status> -->
  14. <quoted-status *ngIf="replyTweet" [data]="replyTweet"></quoted-status>
  15. <!-- Form to write a tweet -->
  16. <form [formGroup]="tweet" (ngSubmit)="submitTweet()">
  17. <ion-item class="padding-0">
  18. <ion-label color="primary" stacked>Your tweet</ion-label>
  19. <ion-textarea type="text" formControlName="text" maxlength="140" [attr.rows]="4"></ion-textarea>
  20. </ion-item>
  21. <div class="actions">
  22. <span class="progress">
  23. <svg width="20" height="20" class="progress-circle">
  24. <circle class="background-stroke" cx="10" cy="10" r="8"></circle>
  25. <circle class="progress-stroke" cx="10" cy="10" r="8" transform="rotate(-90, 10, 10)" [style.strokeDashoffset]="tweetCharProgress"></circle>
  26. </svg>
  27. <span class="progress-stats">{{ (tweet.value.text).length }}/140</span>
  28. </span>
  29. <span class="network-switch">
  30. <ion-icon name="logo-twitter"></ion-icon>
  31. <ion-toggle checked="false" formControlName="p2p" color="dark"></ion-toggle>
  32. <ion-icon name="glasses"></ion-icon>
  33. </span>
  34. <ion-icon name="warning" *ngIf="showTrigger" class="warning" (click)="showTriggerInfo()"></ion-icon>
  35. <button ion-button type="submit" class="submit-tweet">tweet!</button>
  36. </div>
  37. </form>
  38. </ion-content>