Port Community Spotlight to Bootstrap
This commit is contained in:
parent
19bcf103aa
commit
2424301112
3 changed files with 59 additions and 17 deletions
|
|
@ -39,3 +39,44 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#community_spotlight {
|
||||||
|
.avatar {
|
||||||
|
width: 140px;
|
||||||
|
height: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_card {
|
||||||
|
@include border-radius(3px);
|
||||||
|
@include box-shadow(0,1px,5px,#ccc);
|
||||||
|
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
margin-right: 10px;
|
||||||
|
min-height: 220px;
|
||||||
|
padding: 10px 10px 30px 10px;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: top;
|
||||||
|
width: 140px;
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add_user_to_aspect {
|
||||||
|
bottom: 10px;
|
||||||
|
right: 10px;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
color: $text-grey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
class ContactsController < ApplicationController
|
class ContactsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
use_bootstrap_for :index
|
use_bootstrap_for :index, :spotlight
|
||||||
|
|
||||||
def index
|
def index
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
|
||||||
|
|
@ -8,21 +8,22 @@
|
||||||
- content_for :head do
|
- content_for :head do
|
||||||
= javascript_include_tag :people
|
= javascript_include_tag :people
|
||||||
|
|
||||||
|
.row
|
||||||
|
.span12
|
||||||
#section_header
|
#section_header
|
||||||
%h2
|
%h3
|
||||||
= t('contacts.index.title')
|
= t('contacts.index.title')
|
||||||
|
|
||||||
|
.row
|
||||||
= render 'shared/contact_sidebar'
|
= render 'shared/contact_sidebar'
|
||||||
|
|
||||||
.span-18.last{:style => "position:relative;"}
|
.span9
|
||||||
|
|
||||||
- if AppConfig.settings.community_spotlight.suggest_email.present?
|
- if AppConfig.settings.community_spotlight.suggest_email.present?
|
||||||
.right
|
.right
|
||||||
= link_to t('contacts.spotlight.suggest_member'), "mailto:#{AppConfig.settings.community_spotlight.suggest_email}", :class => "button"
|
= link_to t('contacts.spotlight.suggest_member'), "mailto:#{AppConfig.settings.community_spotlight.suggest_email}", :class => "button"
|
||||||
|
|
||||||
%h3
|
%h3
|
||||||
= t('contacts.spotlight.community_spotlight')
|
= t('contacts.spotlight.community_spotlight')
|
||||||
%br
|
|
||||||
|
|
||||||
#community_spotlight
|
#community_spotlight
|
||||||
- unless @people.blank?
|
- unless @people.blank?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue