-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from coopdevs/develop
Release v1.8.0
- Loading branch information
Showing
46 changed files
with
383 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
.to-member-card { | ||
& { | ||
margin: 16px 0; | ||
width: 100%; | ||
max-width: 600px; | ||
height: 178px; | ||
background-color: white; | ||
box-shadow: 0 0 3px $palette-grey; | ||
display: inline-block; | ||
|
||
@media(max-width: $screen-sm-min) { | ||
height: auto; | ||
margin: 10px 0; | ||
} | ||
} | ||
|
||
&__header { | ||
& { | ||
display: flex; | ||
background-color: $palette-dark-turkey; | ||
padding: 10px 20px; | ||
} | ||
|
||
&__avatar { | ||
margin-right: 20px; | ||
} | ||
|
||
&__text { | ||
h4 { | ||
& { | ||
margin: 4px 0 6px; | ||
} | ||
|
||
a { | ||
color: white; | ||
font-size: 18px; | ||
} | ||
} | ||
|
||
&__activity { | ||
font-size: 14px; | ||
color: #78adb9; | ||
font-size: 12px; | ||
} | ||
} | ||
} | ||
|
||
&__body { | ||
& { | ||
padding: 16px 20px; | ||
} | ||
|
||
&__description { | ||
margin-bottom: 10px; | ||
color: #666; | ||
font-size: 15px; | ||
height: 44px; | ||
|
||
@media(max-width: $screen-sm-min) { | ||
height: auto; | ||
} | ||
} | ||
|
||
&__items { | ||
display: flex; | ||
|
||
@media(max-width: $screen-sm-min) { | ||
display: block; | ||
margin-bottom: 2px; | ||
} | ||
} | ||
|
||
&__item { | ||
& { | ||
margin-right: 20px; | ||
font-size: 14px; | ||
color: grey; | ||
} | ||
|
||
a { | ||
color: grey; | ||
} | ||
|
||
.glyphicon { | ||
color: grey; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div class="to-member-card"> | ||
<div class="to-member-card__header"> | ||
<div class="to-member-card__header__avatar"><%= member.avatar_img(48) %></div> | ||
<div class="to-member-card__header__text"> | ||
<h4><%= member.link_to_self %></h4> | ||
<div class="to-member-card__header__text__activity"> | ||
<%= "##{member.member_uid} — " %> | ||
<% if member.last_sign_in_at %> | ||
<%= t('.active_ago', time: distance_of_time_in_words(Time.now, member.last_sign_in_at)) %> | ||
<% else %> | ||
<%= t('.no_activity') %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="to-member-card__body"> | ||
<div class="to-member-card__body__description"> | ||
<%= member.description %> | ||
</div> | ||
<div class="to-member-card__body__items"> | ||
<div class="to-member-card__body__item"> | ||
<span class="glyphicon glyphicon-earphone"></span> | ||
<%= phone_to member.phone %> | ||
</div> | ||
<div class="to-member-card__body__item"> | ||
<span class="glyphicon glyphicon-envelope"></span> | ||
<%= member.mail_to %> | ||
</div> | ||
<div class="to-member-card__body__item"> | ||
<%= "Balance: " %> | ||
<%= member.account_balance %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
<%= glyph :arrow_up %> | ||
<%= t 'global.promote' %> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.