//-
   Created by zhuyan6 on 16/5/13.
   微博流的单独块

mixin img-list(conf)
   - if(conf)
      - for(var n=0; n<conf.image_url.length; n++)
         li.img
            img(src=conf.image_url[n])

mixin pic-list(conf)
   - if(conf)
      - for(var n=0; n<conf.pic_ids.length; n++)
         li.img
            img(src=conf.pic_ids[n])

mixin feed-media(conf)
   .feed-media
      .feed-arrow
         em ◆
         span ◆
      .feed-forwardContent
         .feed-info
            a.feed-name(href=conf.originalUrl, target='_blank') !{conf.user.name}
         p.feed-text.break !{conf.text}
      .feed-mediaPreview
         ul.lotspic_list
            +pic-list(conf)
      p.feed-other
         span.feed-t #{conf.created_time}
         | 来自
         a(href='javascript:;')
         //a(href=conf.source, rel='nofollow') 微博 weibo.com
         | !{conf.source}

mixin feed-content-type(conf)
   .mod-weibo-mid.clearfix
      .feed-content
         p.feed-source
            a(href=conf.originalUrl, target='_blank') [查看原微博]
         p.feed-text.break !{conf.text}
         ul.lotspic_list
            +img-list(conf)
         - if(conf.retweeted_status)
            +feed-media(conf.retweeted_status)
         p.feed-other
            span.feed-t #{conf.created_time}
            | 来自
            a(href='javascript:;')
            //a(href=conf.source, rel='nofollow') 微博 weibo.com
            | !{conf.source}
         span.icon.icon-selected  

mixin create(conf)
   +feed-content-type(conf)


mixin init()
   - if(config)
      //- for(var n=0; n<conf.length; n++)
      .mod-weibo-feed-bg
         .comp-weibo-feed-loading
         - each item, index in config
            +create(item)


+init()
