Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1434 #1433 #1430 #1420 #1418 #1417 #1398] UI Updates #1435

Merged
merged 2 commits into from
Apr 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions akvo/rsr/static/scripts-src/my-user-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ var UserRow = React.createClass({displayName: 'UserRow',
React.DOM.td(null, this.props.user.email),
React.DOM.td(null, this.props.user.first_name),
React.DOM.td(null, this.props.user.last_name),
React.DOM.td(null, EmploymentList( {user:this.props.user} ))
React.DOM.td( {className:"text-right"}, EmploymentList( {user:this.props.user} ))
)
);
}
Expand Down Expand Up @@ -329,7 +329,7 @@ UserTable = React.createClass({displayName: 'UserTable',
return (
Table( {striped:true},
React.DOM.thead(null, React.DOM.tr(null, React.DOM.th(null, "Email"),React.DOM.th(null, "First name"),React.DOM.th(null, "Last name"),
React.DOM.th(null, "Organisations"))
React.DOM.th( {className:"text-right"}, "Organisations"))
),
React.DOM.tbody(null, users)
)
Expand Down
4 changes: 2 additions & 2 deletions akvo/rsr/static/scripts-src/my-user-management.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ var UserRow = React.createClass({
<td>{this.props.user.email}</td>
<td>{this.props.user.first_name}</td>
<td>{this.props.user.last_name}</td>
<td><EmploymentList user={this.props.user} /></td>
<td className="text-right"><EmploymentList user={this.props.user} /></td>
</tr>
);
}
Expand Down Expand Up @@ -329,7 +329,7 @@ UserTable = React.createClass({
return (
<Table striped>
<thead><tr><th>Email</th><th>First name</th><th>Last name</th>
<th>Organisations</th></tr>
<th className="text-right">Organisations</th></tr>
</thead>
<tbody>{users}</tbody>
</Table>
Expand Down
4 changes: 2 additions & 2 deletions akvo/rsr/static/styles-src/library.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ $width-large: 1200px;
@if $width == wide-screens {
@media only screen and (min-width: $width-large) { @content; }
}
@else if $width == medium-screens {
@else if $width == mediums-screens {
@media only screen and (min-width: $width-medium) {@content; }
}
@else if $width == small-screens {
Expand All @@ -138,7 +138,7 @@ $width-large: 1200px;
@else if $width == wide-max-screens {
@media only screen and (max-width: $width-large) { @content; }
}
@else if $width == medium-max-screens {
@else if $width == mediums-max-screens {
@media only screen and (max-width: $width-medium) { @content; }
}
@else if $width == small-max-screens {
Expand Down
21 changes: 15 additions & 6 deletions akvo/rsr/static/styles-src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ span.twitter-typeahead .tt-dropdown-menu {
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
min-width: 268px;
padding: 5px 15px;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
Expand All @@ -190,17 +190,21 @@ span.twitter-typeahead .tt-dropdown-menu {
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box; }
span.twitter-typeahead .tt-dropdown-menu .tt-suggestions {
color: rgba(0, 0, 0, 0.7) !important; }
span.twitter-typeahead .tt-dropdown-menu .tt-suggestions * {
color: rgba(0, 0, 0, 0.7) !important; }

.tt-hint {
color: rgba(0, 167, 157, 0.5); }
color: rgba(0, 167, 157, 0.9); }

span.twitter-typeahead .tt-suggestion > p {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333;
color: rgba(0, 0, 0, 0.7);
white-space: nowrap; }

span.twitter-typeahead .tt-suggestion > p:hover, span.twitter-typeahead .tt-suggestion > p:focus {
Expand Down Expand Up @@ -477,6 +481,11 @@ nav.navbar-fixed-top {
background: rgba(255, 85, 0, 0.05) url(../images/carretWhite.png) 98% center no-repeat;
background-size: 5px auto; }

.myProjectList tbody tr {
background: rgba(32, 32, 36, 0.1) !important; }
.myProjectList tbody tr.isPublished {
background: white !important; }

#profile .usrAvatar {
background-color: rgba(32, 32, 36, 0);
padding: 10px 0 10px 0; }
Expand Down Expand Up @@ -563,7 +572,7 @@ nav.navbar-fixed-top {
color: #999; }
#organisations .tt-dropdown-menu {
margin-top: 12px;
padding: 8px 0;
padding: 8px 15px;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
Expand Down Expand Up @@ -663,7 +672,7 @@ h4.detailedInfo {
/* LISTINGS */
#map {
height: 400px; }
@media only screen and (max-width: 768px) {
@media only screen and (max-width: 568px) {
#map {
display: none; } }

Expand Down
38 changes: 29 additions & 9 deletions akvo/rsr/static/styles-src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ span.twitter-typeahead .tt-dropdown-menu {
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
min-width: 268px;
padding: 5px 15px;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
Expand All @@ -182,10 +182,19 @@ span.twitter-typeahead .tt-dropdown-menu {
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
.tt-suggestions {
color: rgba(black, 0.7) !important;
* {
color: rgba(black, 0.7) !important;
}
}
.tt-dataset-projects {}
.tt-dataset-organisations {}
.tt-dataset-locations {}
}

.tt-hint {
color: rgba($rsrGreen, 0.5);
color: rgba($rsrGreen, 0.9);
}

span.twitter-typeahead .tt-suggestion > p {
Expand All @@ -194,7 +203,7 @@ span.twitter-typeahead .tt-suggestion > p {
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333;
color: rgba(black, 0.7);
white-space: nowrap;
}

Expand Down Expand Up @@ -517,6 +526,17 @@ nav.navbar-fixed-top {
}
}

.myProjectList {
tbody {
tr {
background: rgba($akvoBlack, 0.1) !important;
&.isPublished {
background: white !important;
}
}
}
}

#profile {
.usrAvatar {
background-color: rgba($akvoBlack, 0);
Expand Down Expand Up @@ -617,7 +637,7 @@ nav.navbar-fixed-top {
}
.tt-dropdown-menu {
margin-top: 12px;
padding: 8px 0;
padding: 8px 15px;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
Expand Down Expand Up @@ -733,7 +753,7 @@ h4.detailedInfo {
/* LISTINGS */
#map {
height: 400px;
@include responsive(small-max-screens) {
@include responsive(xtra-small-max-screens) {
display: none;
}
}
Expand Down Expand Up @@ -1025,7 +1045,7 @@ h4.detailedInfo {
.donateButton {
text-align: left;
a {
@include responsive(medium-max-screens) {
@include responsive(mediums-max-screens) {
margin-top: 0.6em;
}

Expand Down Expand Up @@ -1653,7 +1673,7 @@ div.textBlock {
background-color: $secondary8;
}
@include responsive(small-screens) {
@include responsive(medium-max-screens) {
@include responsive(mediums-max-screens) {
h3 {
font-size: 1.3em;
}
Expand Down Expand Up @@ -1695,7 +1715,7 @@ section.projectFinancial {
}
}

@include responsive(medium-max-screens) {
@include responsive(mediums-max-screens) {
@include responsive(small-screens) {
.dl-horizontal {
dt {
Expand Down
8 changes: 5 additions & 3 deletions akvo/templates/myrsr/my_projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
</form>
</div>
{% if page %}
<table class="table table-striped table-responsive">
<table class="table table-striped table-responsive myProjectList">
<thead>
<tr>
<th>{% trans "Project" %}</th><th>{% trans "Location" %}</th><th>{% trans "Status" %}</th><th>{% trans "Actions" %}</th></tr>
<tr>
</thead>
{% for project in page %}
<tr>
{% if project.is_published %}
<tr class="isPublished">
{% endif %}
<td class="media">
{% comment %}
<a class="pull-left" href="{% url 'project-main' project.id %}">
Expand Down Expand Up @@ -74,7 +76,7 @@ <h4 class="media-heading">{{ project.title }}</h4>
</a>
{% endif %}
{% has_perm 'rsr.post_updates' project as can_add_update %}
<a href="{% url 'add-update' project.pk %}">Add update</a>
<a href="{% url 'add-update' project.pk %}">Update</a>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion akvo/templates/update_directory.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h1><a href="{% url 'update-main' u.project.id u.id %}"><i class="fa fa-camera-r
<div><span class="userFullName"><em>by</em>{{u.user.first_name}} {{u.user.last_name}}</span>
{% if u.user.approved_organisations %}
{% with org=u.user.approved_organisations.0 %}
( <a href="{% url 'organisation-main' org.pk %}" class="orgName"><i class="fa fa-users"></i> {{org.long_name}}</a> )
<a href="{% url 'organisation-main' org.pk %}" class="orgName"><i class="fa fa-users"></i> {{org.long_name}}</a>
{% endwith %}
{% endif %}
</div>
Expand Down