meta-folder.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div id="sidebar" v-bind:class="{in : meta_visible}" v-if="active_view=='folders' && active_folder" class="folder-sidebar">
  2. <button class="btn btn-md btn-transparent btn-icon round pull-right" v-on:click="toggle_meta()" style="margin-top:15px;margin-right:20px">
  3. <span class="icon icon-menu"></span>
  4. </button>
  5. <div class="sidebar-section" v-if="active_folder.creator">
  6. <h4>{{active_folder.name}}</h4>
  7. <div style="margin-bottom: 15px; margin-top: 8px" >
  8. <small>
  9. [[__("created_by")]] <b>{{active_folder.creator.nickname||active_folder.creator.slug}}.</b>
  10. <br/>[[__("last_updated")]] <b>{{active_folder.updated_at | date 'MMMM Do YYYY, HH:mm'}}.</b>
  11. </small>
  12. </div>
  13. <div v-if="logged_in && user.home_folder_id!=active_folder._id">
  14. <button class="btn btn-sm btn-round btn-primary m-r-5" v-on:click="activate_access()">
  15. <span class="icon-label">[[__("share")]]</span>
  16. </button>
  17. </div>
  18. </div>
  19. <div class="sidebar-section" v-if="is_pro(user)">
  20. <h5>[[__("history_recently_updated")]]</h5>
  21. <div v-if="active_folder_history_items.length == 0">
  22. [[__("history_recently_empty")]]
  23. </div>
  24. <ul id="updates">
  25. <li v-for="item in active_folder_history_items">
  26. <a v-bind:href="'/spaces/' + item.space._id">{{item.space.name}}</a>
  27. <small>
  28. [[__("by")]]
  29. <span v-for="u in item.users">{{u}}<span v-if="$index < (item.users.length-1)">, </span></span>
  30. </small>
  31. </li>
  32. </ul>
  33. </div>
  34. <div class="sidebar-section" v-if="!is_pro(user)">
  35. <h5>[[__("history_recently_updated")]]</h5>
  36. <p>
  37. [[__("pro_ad_history_headline")]]
  38. </p>
  39. <p>
  40. <button class="btn btn-round btn-primary btn-md" v-on:click="show_upgrade_modal()">Upgrade</button>
  41. </p>
  42. </div>
  43. </div>