rosa-build/app/views/users/profile/show.html.slim

65 lines
2.3 KiB
Plaintext
Raw Normal View History

2014-11-13 00:17:22 +00:00
- set_meta_tags title: title_object(@user)
= render 'users/base/submenu'
.row
.col-md-3.col-md-offset-1
2016-05-22 13:25:00 +01:00
rd-widget
- title=@user.uname.truncate(20) + (@user.name.present? ? ' (' + @user.name.truncate(20) + ')' : '')
rd-widget-header title=title
rd-widget-body
- size = User::AVATAR_SIZES[:big]
= image_tag avatar_url(@user, :big),
alt: @user.uname, height: size, width: size
hr
- if @user.professional_experience.present?
b= t('activerecord.attributes.user.professional_experience')
p= @user.professional_experience
- unless @user.hide_email?
b= t('activerecord.attributes.user.email')
p= mail_to @user.email, @user.email.truncate(50), title: @user.email
- if @user.site.present?
b= t('activerecord.attributes.user.site')
p= link_to @user.site.truncate(50), @user.site
- if @user.company.present?
b= t('activerecord.attributes.user.company')
p= @user.company.truncate(50)
- if @user.location.present?
b= t('activerecord.attributes.user.location')
p= @user.location.truncate(50)
hr
h4= t('top_menu.groups')
- size = User::AVATAR_SIZES[:micro]
- @groups.each do |group|
p
=> image_tag avatar_url(group, :micro), alt: group.uname, height: size, width: size
= link_to group.uname.truncate(20), group
2014-11-13 00:17:22 +00:00
.col-md-7
ul.nav.nav-tabs ng-init="tab = 'projects'"
li[ role='presentation'
ng-class="{ active: tab == 'projects' }"
ng-click="tab = 'projects'" ]
a href="#"
= t('top_menu.projects')
li[ role='presentation'
ng-class="{ active: tab == 'statistics' }"
2014-11-18 18:58:07 +00:00
ng-click="tab = 'statistics'; $broadcast('activate_stats_tab')" ]
2014-11-13 00:17:22 +00:00
a href="#"
= t('top_menu.statistics')
2016-05-22 13:25:00 +01:00
div ng-show="tab == 'projects'"
= render 'projects', subject: @user
2015-02-06 15:49:06 +00:00
#manage-statistics.offset10[ ng-show = "tab == 'statistics'"
2014-11-18 18:58:07 +00:00
ng-cloak = true ]
2016-05-22 13:25:00 +01:00
rd-widget
rd-widget-header title=t('top_menu.statistics')
rd-widget-body
div ng-controller = 'StatisticsController'
= render 'statistics'