dgiormov / ista.agenda.builder.web

Apache License 2.0
2 stars 2 forks source link

Time-slot headings #14

Closed panev closed 10 years ago

panev commented 10 years ago

I've added a bunch of time-slot heading elements to the main view, in the top of the list-group container.

image

The list group items (sessions) and the headers themselves need to be sorted by time so they make sense. For instance the sessions that start at 10:00, need to be under the 10 o'clock heading etc.

The css selector is independent, so the heading elements can be moved to wherever, if needed. Let me know if something is unclear.

Thanks!

panev commented 10 years ago

I've made some changes to the markup and styled them accordingly, due to the headings. It currently looks like this:

<div class="list-group-heading" ng-show="isChangedTime(session.startTime)">{{session.startTimeString}}</div>

  <div class="list-group-item-holder">
    <a ng-href="#/sessions/{{session.id}}">
      <h4 class="list-group-item-heading">{{session.name}}</h4>
      <h5 class="list-group-speaker"><span ng-repeat="name in session.speakers"> {{name}} </span></h5>
    </a>

    <div class="add-session" ng-class="isSelected(session.isSelected)" ng-click="addSession(session, $event)">
      <i ng-class="isChecked(session.isSelected)" class="fa"></i> 
    </div>

    <h3 class="list-group-track">{{session.track}}</h3>
    <div class="track-marker"></div>
  </div>

Everything seems to work fine, closing this.

Thanks~

panev commented 10 years ago

Apparently however, the new styling structure nukes all other list-group-items ( comments, rankings). Reopening.

panev commented 10 years ago

Updated styling, closing.