Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2. available classes for component type:
  3.     material-text
  4.     material-video
  5.     material-image
  6.     material-link (embedded-code)
  7.     material-file
  8.     material-test
  9.     material-maurus
  10. -->
  11. <div class=&quot;material material-{{model.type}}&quot;><!-- .material-type -->
  12.     <div class=&quot;material-icon&quot;>
  13.         <span class=&quot;fa-stack fa-2x&quot;>
  14.           <i class=&quot;fa fa-stack-2x&quot;></i>
  15.           <i class=&quot;fa fa-stack-1x fa-inverse&quot;></i>
  16.         </span>
  17.     </div>
  18.     <div class=&quot;material-body&quot;>
  19.         <span class=&quot;material-header&quot;>
  20.         {{#if isMaurus}}
  21.             <a {{action 'openModal' 'modal.maurus-modal' material}} >{{model.title}}</a>
  22.         {{else}}
  23.             <a href=&quot;{{model.content}}&quot;>{{model.title}}</a>
  24.         {{/if}}
  25.         </span><!-- material header -->    
  26.         <div>{{model.description}}</div><!-- material description -->
  27.     </div>
  28.     <div class=&quot;material-footer font-sm&quot;>
  29.         {{#if isMaurus}}
  30.             <a href=&quot;#&quot; {{action 'openModal' 'modal.maurus-modal' material}}><i class=&quot;fa fa-eye&quot;></i> <span class=&quot;hidden-xs&quot;>Vaata</span></a>
  31.         {{else}}
  32.             <a href=&quot;{{model.content}}&quot;><i class=&quot;fa fa-eye&quot;></i> <span class=&quot;hidden-xs&quot;>Vaata</span></a>
  33.         {{/if}}
  34.         {{#if isAddedToEopik}}
  35.             <span class=&quot;added-to&quot;><i class=&quot;fa fa-check&quot;></i> <span class=&quot;hidden-xs&quot;>Lisatud e-õpikusse</span></span>
  36.         {{else}}
  37.             <a {{action 'addToEopik'}} href=&quot;#&quot;><i class=&quot;fa fa-plus&quot;></i> <span class=&quot;hidden-xs&quot;>Lisa oma e-õpikusse</span></a>
  38.         {{/if}}
  39.         {{#if isAddedOrOwner}}
  40.             <a {{action 'showSettings'}} href=&quot;#&quot;><i class=&quot;fa fa-cog&quot;></i> <span class=&quot;hidden-xs hidden-sm&quot;>{{if showSettings 'Vähem' 'Rohkem' }} seadeid</span></a>
  41.         {{/if}}
  42.         <span class=&quot;pull-right&quot;>
  43.             <span class=&quot;margin-right-10&quot;><i class=&quot;fa fa-calendar hidden-lg hidden-md&quot;></i> <strong class=&quot;hidden-sm hidden-xs&quot;>Loodud: </strong>{{formattedDate}}</span>
  44.             <span><i class=&quot;fa fa-user-plus hidden-lg hidden-md&quot;></i> <span class=&quot;hidden-sm hidden-xs&quot;>Lisatud</span> <strong>{{model.added_count}}</strong> <span class=&quot;hidden-sm hidden-xs&quot;>korda</span></span>
  45.         </span>
  46.     </div>
  47.     {{#if showSettings}}
  48.     <div class=&quot;material-settings font-sm&quot;>
  49.         {{#if isAddedOrOwner}}
  50.             {{#if isAddedToEopik}}
  51.                 <div><a {{action 'removeFromEopik'}} href=&quot;#&quot;>Eemalda oma e-õpikust</a></div>
  52.             {{/if}}
  53.             {{#if isOwner}}
  54.                 <div>
  55.                     <strong>Materjal nähtav: </strong>
  56.                     {{input type=&quot;checkbox&quot; name=&quot;visible_to_teachers&quot; checked=model.visible_to_teachers}} Õpetajatele
  57.                     {{input type=&quot;checkbox&quot; name=&quot;visible_to_students&quot; checked=model.visible_to_students}} Õpilastele
  58.                 </div>
  59.             {{/if}}
  60.             <div><strong>Jaga oma gruppidega:</strong>
  61.             <div class=&quot;btn-group&quot;>
  62.   <button data-toggle=&quot;dropdown&quot; class=&quot;btn-small dropdown-toggle&quot;  data-placeholder=&quot;Please select&quot;>Checked option <span class=&quot;caret&quot;></span></button>
  63.     <ul class=&quot;dropdown-menu&quot;>
  64.     {{#each group in model.group }}
  65.       <li><label>{{group.name}}
  66.       {{#if model.is_added_group}}
  67.             <span class=&quot;added-to&quot;><i class=&quot;fa fa-check&quot;></i></span>
  68.         {{else}}
  69.             <a {{action 'addToGroup'}} href=&quot;#&quot;><i class=&quot;fa fa-plus&quot;></i></a>
  70.         {{/if}}</label></li>
  71.       {{/each}}
  72.     </ul>
  73. </div></div>
  74.         {{/if}}
  75.     </div>
  76.     {{/if}}
  77. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement