venue.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 = 'venueController')
  head
      title {{v.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='{{v.extra1}} Spot dekho')
      meta(property='og:site_name', content='Spotdekho')
      meta(name='description', content='{{v.extra2}}')
      meta(property='og:description', content='{{v.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='{{v.extra3}}')
  article.detail(itemscope='itemscope', itemtype='http://schema.org/Place')
    .container
      .section-title.rounded
        .block-header
          h2
            |{{v.name}}
      .body
        div
          div
            .letter-paragraph
               {{v.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 it.
                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="v.image!='-'")
            div(ng-repeat="item in v.image.split(',') track by $index") 
              div(ng-if="$index=='0'")
                img.img-responsive.img-rounded(src='{{item}}')
            br
          div
            .letter-paragraph
               {{v.bDescription}}
    .container
      div(ng-if="v.image!='-'")
        div(ng-repeat="item in v.image.split(',') track by $index") 
          div(ng-if="$index!='0'")
            br 
            img.img-responsive.img-rounded(src='{{item}}')
            br
    .container(ng-if="s.length>0")
      .section-title.rounded
        .block-header
           h2
             |Famous Tourist Spots in {{v.name}}
      .body
        div
          ul.spotit-cards.row
            li.col-xs-12.col-sm-6.col-md-3(ng-repeat = "S in s")
              .spotit-card.spotit-card-venue.rounded
                .spotit-card-header
                  .row
                    .col-xs-12.col-sm-12.col-md-12
                      a(ng-href='/subList/{{S._id}}')
                        h4
                          |  {{S.name}}
                a(ng-href='/subList/{{S._id}}')
                  .spotit-card-image(style='background-image: url({{S.image}})')
                .spotit-card-footer
                  a(ng-href='/subList/{{S._id}}')
                    .row
                      .col-xs-12.col-sm-12.col-md-12
                          |  type: {{S.type}}
                    .row
                      .col-xs-12.col-sm-12.col-md-12
                          | Address : {{S.address}}
    .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: {{v.address}},
           span(itemprop='addressLocality') {{v.city|capitalize}}
           br
           |Timings: {{v.timings}}
           br
           |Phone: {{v.phone}}
        div
          br
          #map-canvas.map.rounded
  .container(ng-if="o.length>0")
    .row
      .col-xs-12
        .block-header
          h2
            |Offers in venue
    ul.spotit-cards.row
      li.col-xs-12.col-sm-6.col-md-3(ng-repeat = "O in o")
        .spotit-card.spotit-card-offer.rounded
          .spotit-card-headingCentre
            .row
              .col-xs-12.col-sm-12.col-md-12
                h4
                      {{O.header}}
          a(ng-href='/offers/{{O._id}}')
            .spotit-card-image(style='background-image: url({{O.photoString}})')
          .spotit-card-footer
              .row
                .col-xs-12.col-sm-12.col-md-12
                    |  From: {{O.startDate}}   To: {{O.endDate}}
              .row
                .col-xs-12.col-sm-12.col-md-12
                    | Timings : {{O.timeInfo}}
  .container
    .section-title.rounded
      .block-header
        h2
          | Comments / Review / Feedbacks for {{v.name}}
    br
    .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
          br

 

Leave a Reply

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