subList.jade


 

div
  font(color='blue')
    #login-modal.modal.fade(tabindex='-1', role='dialog', aria-labelledby='myModalLabel')
          .modal-dialog(role='document')
            .modal-content
              .modal-body
                |Please login to provide rating.
                h1
                a(ng-href='/login' target='_self')
                  |LOGIN here
                br
                br
                button.btn.btn-default(type='button', data-dismiss='modal') Close
div
  font(color='blue')
    #comment-modal.modal.fade(tabindex='-1', role='dialog', aria-labelledby='myModalLabel')
          .modal-dialog(role='document')
            .modal-content
              .modal-body
                |Thanks for your comment.
                br
                |It will be soon available after review.
                br
                br
                button.btn.btn-default(type='button', data-dismiss='modal') Close
div(ng-controller = 'subListController')
  head
      title {{S.extra1}} Spot dekho
      meta(charset='utf-8')
      meta(http-equiv='X-UA-Compatible', content='IE=edge, chrome=1')
      meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1')
      meta(property='og:type', content='website')
      meta(property='og:title', content='{{S.extra1}}')
      meta(property='og:site_name', content='Spotdekho')
      meta(name='description', content='{{S.extra2}} Spot dekho')
      meta(property='og:description', content='{{S.extra2}}')
      meta(name='viewport', content='width=device-width  initial-scale=1.0  maximum-scale=1.0  minimum-scale=1.0  user-scalable=no')
      meta(name='apple-mobile-web-app-capable', content='yes')
      meta(name='keywords', content='{{S.extra3}}')
  article.detail(itemscope='itemscope', itemtype='http://schema.org/Place')
    .container
      .section-title.rounded
        .block-header
          h2
            |{{S.name}}
      .body
        div
         div
           .letter-paragraph
              font(color='#990073')
                a(ng-href='/venues/{{S.city}}').h5.u
                  p(align='right') Go Back
              {{S.sDescription}}
         div(style='background-color: #E6F5FF; color: black')
          div(ng-init='rating = star.rating - 1')
            h4  User Rating:
            .star-rating(star-rating='', rating-value='rating', data-max='5', data-average='avgForStar', on-rating-selected='rateFunction(rating)')
            div(ng-show="t=='0'")
              |Click on stars and be the first one to rate this spot.
            div(ng-hide="t=='0'")
              |Average: 
              span(style='font-size:1.2em'){{a}}
                span(style='font-size:0.8em') /5
                , {{t}}
              | rating
            div(ng-hide="t=='0'")
              div(ng-show="u=='0'")
                |Your rating: Not yet rated, please click on stars and provide your rating.
            div(ng-hide="u=='0'")
              |Your rating: {{u}}
         div
           br
         div(ng-if="S.image!='-'")
           img.img-responsive.img-rounded(src='{{S.image}}')
           br
         div(style='background-color: #E6F5FF; color: black')
           .letter-paragraph
             {{S.bDescription}}
    .container
      .body
        div(style='background-color: #E6F5FF; color: black')
          h3 Contact details
          address(itemprop='address', itemscope='itemscope', itemtype='http://schema.org/PostalAddress')
          span(itemprop='streetAddress') Address: {{S.address}},
          span(itemprop='addressLocality')
          br
          |Timings: {{S.timings}}
          br
          |Phone: {{S.phone}}
        div
          br
          #map-canvas.map.rounded
    .container
      .section-title.rounded
        .block-header
          h2
            |Comments / Review / Feedbacks for {{S.name}}
      .body
        div
          font(color='black')
            p What are your comments about this spot ?
            div(ng-show="verify=='notloggedIn'")
              p
                font(color='#4d1a00')
                  |Please 
                  a(ng-href='/login')
                    | Login 
                  | to post comment
            form(ng-submit='postNewPost()')
              textarea(ng-model='newMessage', style='width:80%', rows='4')
                
              input.btn.btn-primary.btn-small(type='submit', ng-disabled="verify=='notloggedIn'", value='Send')
            hr
            p Previous Comments:
              .well.well-small(ng-repeat='R in r')
                div(ng-init='ensureLikecount(R._id)')
                  .row
                    .col-xs-12.col-sm-6.col-md-1
                      .row
                        img.img-rounded(src='{{R.userPic}}', alt='UserPic',height='60', width='60')
                    .col-xs-12.col-sm-6.col-md-9
                      font(color='#002b80').b
                        |    {{R.userName}} :
                      {{R.comment}}
                      h6
                        font(color='#a6a6a6')
                          {{R.curdate}}
                    //-
                      col-xs-12.col-sm-6.col-md-2
                        span.pull-right
                          a(href='javascript:void(0)', ng-click='addLikecount(R._id)') Like
                          .badge {{likecount[R._id].count}}
            br
            br

 

Leave a Reply

Your email address will not be published. Required fields are marked *