Retrospring/app/views/user/show_follow.html.haml

26 lines
1.0 KiB
Plaintext
Raw Normal View History

- provide(:title, user_title(@user, "friends and followers"))
2017-03-29 15:18:11 -07:00
- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end
#profile--header{class: no_header}
%img.profile--header-img{src: @user.profile_header.url(:web)}
2017-03-29 15:20:37 -07:00
.container.j2-page.headerable{class: no_header}
2020-04-19 14:12:23 -07:00
.row
.col-md-3.col-xs-12.col-sm-4.j2-col-reset
= render 'user/profile_info'
.hidden-xs= render 'shared/links'
.col-md-9.col-xs-12.col-sm-8.j2-col-reset
%h1.j2-lh.hidden-xs= @title
%h1.visible-xs= @title
#users
- @users.each do |user|
.col-md-4.col-sm-6.col-xs-12
= render 'shared/userbox', user: user
2014-12-08 08:03:06 -08:00
2020-04-19 14:12:23 -07:00
#pagination= will_paginate @users, renderer: BootstrapPagination::Rails, page_links: false
2014-12-08 08:03:06 -08:00
2020-04-19 14:12:23 -07:00
- if @users.next_page
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @users.current_page }}
= t 'views.actions.load'
2014-12-08 08:03:06 -08:00
.visible-xs= render 'shared/links'
2015-01-13 22:07:40 -08:00
- if user_signed_in?
2015-05-10 10:48:47 -07:00
= render 'user/modal_group_memberships'