DG IZ; requests bar added to group/edit
This commit is contained in:
parent
136eb61b02
commit
82a31228fa
4 changed files with 57 additions and 44 deletions
|
|
@ -34,6 +34,7 @@ class GroupsController < ApplicationController
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
@groups = current_user.groups
|
@groups = current_user.groups
|
||||||
|
@remote_requests = Request.for_user current_user
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,22 @@
|
||||||
= javascript_include_tag 'group-edit.js'
|
= javascript_include_tag 'group-edit.js'
|
||||||
|
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
|
%h1{:id => 'group_title'}
|
||||||
|
Requests
|
||||||
|
|
||||||
|
- for request in @remote_requests
|
||||||
|
.person{:id => request.person.id}
|
||||||
|
= image_tag(request.person.profile.image_url(:thumb_small)) unless request.person.profile.image_url.nil?
|
||||||
|
.name
|
||||||
|
= request.person.real_name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
requests
|
requests
|
||||||
|
|
||||||
%h1{:class => 'big_text', :id => 'group_title'}
|
%h1{:id => 'group_title'}
|
||||||
= "Managing Relations"
|
Relations
|
||||||
|
|
||||||
%ul#group_list
|
%ul#group_list
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -600,23 +600,23 @@ h1.big_text {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 15px; }
|
padding: 15px; }
|
||||||
.group ul li.person {
|
.group .person {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
background-color: #cccccc;
|
background-color: #cccccc;
|
||||||
-webkit-border-radius: 3px;
|
-webkit-border-radius: 3px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
height: 75px;
|
height: 75px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid #999999; }
|
border: 1px solid #999999; }
|
||||||
.group ul li.person img {
|
.group .person img {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
display: inline-block; }
|
display: inline-block; }
|
||||||
.group ul .grey {
|
.group .person .grey {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #666666; }
|
color: #666666; }
|
||||||
|
|
|
||||||
|
|
@ -788,31 +788,31 @@ h1.big_text
|
||||||
:style none
|
:style none
|
||||||
:padding 15px
|
:padding 15px
|
||||||
|
|
||||||
li.person
|
.person
|
||||||
|
:display inline-block
|
||||||
|
:margin
|
||||||
|
:left 0
|
||||||
|
:padding 5px
|
||||||
|
:cursor move
|
||||||
|
:margin 5px
|
||||||
|
|
||||||
|
:background
|
||||||
|
:color #ccc
|
||||||
|
:-webkit-border-radius 3px
|
||||||
|
|
||||||
|
:text
|
||||||
|
:align center
|
||||||
|
|
||||||
|
:width 75px
|
||||||
|
:height 75px
|
||||||
|
:padding 5px
|
||||||
|
|
||||||
|
:border 1px solid #999
|
||||||
|
|
||||||
|
img
|
||||||
|
:height 50px
|
||||||
|
:width 50px
|
||||||
:display inline-block
|
:display inline-block
|
||||||
:margin
|
|
||||||
:left 0
|
|
||||||
:padding 5px
|
|
||||||
:cursor move
|
|
||||||
:margin 5px
|
|
||||||
|
|
||||||
:background
|
|
||||||
:color #ccc
|
|
||||||
:-webkit-border-radius 3px
|
|
||||||
|
|
||||||
:text
|
|
||||||
:align center
|
|
||||||
|
|
||||||
:width 75px
|
|
||||||
:height 75px
|
|
||||||
:padding 5px
|
|
||||||
|
|
||||||
:border 1px solid #999
|
|
||||||
|
|
||||||
img
|
|
||||||
:height 50px
|
|
||||||
:width 50px
|
|
||||||
:display inline-block
|
|
||||||
|
|
||||||
|
|
||||||
.grey
|
.grey
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue