Merge branch 'svbergerem-unify-ui' into develop

This commit is contained in:
Dennis Schubert 2016-02-07 05:28:07 +01:00
commit 868a45e3e0
21 changed files with 133 additions and 118 deletions

View file

@ -35,7 +35,7 @@ linters:
enabled: true enabled: true
DisableLinterReason: DisableLinterReason:
enabled: false enabled: true
DuplicateProperty: DuplicateProperty:
enabled: true enabled: true

View file

@ -80,6 +80,7 @@ Contributions are very welcome, the hard work is done!
* Replace sidetiq with sidekiq-cron [#6616](https://github.com/diaspora/diaspora/pull/6616) * Replace sidetiq with sidekiq-cron [#6616](https://github.com/diaspora/diaspora/pull/6616)
* Refactor mobile comment section [#6509](https://github.com/diaspora/diaspora/pull/6509) * Refactor mobile comment section [#6509](https://github.com/diaspora/diaspora/pull/6509)
* Set vertical resize as default for all textareas [#6654](https://github.com/diaspora/diaspora/pull/6654) * Set vertical resize as default for all textareas [#6654](https://github.com/diaspora/diaspora/pull/6654)
* Unifiy max-widths and page layouts [#6675](https://github.com/diaspora/diaspora/pull/6675)
## Bug fixes ## Bug fixes
* Destroy Participation when removing interactions with a post [#5852](https://github.com/diaspora/diaspora/pull/5852) * Destroy Participation when removing interactions with a post [#5852](https://github.com/diaspora/diaspora/pull/5852)

View file

@ -3,6 +3,13 @@ body {
padding: none; padding: none;
} }
.container-fluid { max-width: $screen-lg-min; }
.page-streams,
.page-tags.action-show {
> .container-fluid { max-width: 100%; }
}
// Overflow // Overflow
h1, h1,
h2, h2,

View file

@ -191,11 +191,12 @@
} }
} }
@media (max-width: 1354px) { // We need this to override the Bootstrap pagination style only for the conversations view
#left_pane #conversation_inbox .pagination ul > li > a { // scss-lint:disable SelectorDepth
.conversation-inbox .pagination > li > a {
padding: 4px 7px; padding: 4px 7px;
}
} }
// scss-lint:enable SelectorDepth
#new_conversation_pane { #new_conversation_pane {
ul.as-selections { width: 100% !important; } ul.as-selections { width: 100% !important; }

View file

@ -9,7 +9,6 @@
} }
@media (max-width: $grid-float-breakpoint-max) { @media (max-width: $grid-float-breakpoint-max) {
.col-lg-10 { padding: 0; }
.navbar-header > .nav li { display: inline-block !important; } .navbar-header > .nav li { display: inline-block !important; }
.nav-badge { .nav-badge {
color: $navbar-inverse-link-color; color: $navbar-inverse-link-color;

View file

@ -1,7 +1,7 @@
<nav class="navbar navbar-inverse navbar-fixed-top"> <nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-lg-10 col-lg-offset-1"> <div class="col-md-12">
<div class="navbar-header"> <div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#navbar-collapse"> <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">{{t "header.toggle_navigation"}}</span> <span class="sr-only">{{t "header.toggle_navigation"}}</span>

View file

@ -3,10 +3,9 @@
.container-fluid.applications-page .container-fluid.applications-page
.row .row
.col-lg-10.col-lg-offset-1 .col-md-3
= render "shared/settings_nav" = render "shared/settings_nav"
.row .col-md-9
.col-lg-8.col-lg-offset-2
%h3= t(".title") %h3= t(".title")
.row .row
.col-md-12 .col-md-12

View file

@ -1,6 +1,6 @@
.container-fluid.settings_container.applications-page .container-fluid.settings_container.applications-page
.row .row
.col-lg-10.col-lg-offset-1 .col-md-12
- content_for :page_title do - content_for :page_title do
= t(".edit_applications") = t(".edit_applications")
= render "shared/settings_nav" = render "shared/settings_nav"

View file

@ -14,7 +14,7 @@
= link_to t('.new_conversation'), conversations_path, class: 'btn btn-default' = link_to t('.new_conversation'), conversations_path, class: 'btn btn-default'
= t('.inbox') = t('.inbox')
#conversation_inbox .conversation-inbox#conversation_inbox
.stream.conversations .stream.conversations
- if @visibilities.count > 0 - if @visibilities.count > 0
= render partial: "conversations/conversation", collection: @visibilities, as: :visibility = render partial: "conversations/conversation", collection: @visibilities, as: :visibility
@ -34,8 +34,7 @@
- else - else
.stream_container.hidden .stream_container.hidden
#conversation_show #conversation_show
.row#conversation_new #conversation_new
.col-md-10.col-md-offset-1
.new-conversation .new-conversation
%h3.text-center %h3.text-center
= t("conversations.index.new_conversation") = t("conversations.index.new_conversation")

View file

@ -8,7 +8,7 @@
%nav.navbar.navbar-inverse.navbar-fixed-top %nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid .container-fluid
.row .row
.col-lg-10.col-lg-offset-1 .col-md-12
.navbar-header .navbar-header
%button.navbar-toggle.collapsed{type: "button", data: {toggle: "collapse", target: "#navbar-collapse"}} %button.navbar-toggle.collapsed{type: "button", data: {toggle: "collapse", target: "#navbar-collapse"}}
%span.sr-only %span.sr-only

View file

@ -4,11 +4,9 @@
.container-fluid .container-fluid
.row .row
.col-lg-10.col-lg-offset-1 .col-md-3
= render "shared/settings_nav" = render "shared/settings_nav"
.col-md-9
.row
.col-lg-8.col-lg-offset-2
- content_for :submit_block do - content_for :submit_block do
= link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default" = link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default"
= submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile" = submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile"

View file

@ -4,11 +4,11 @@
.settings_container.container-fluid .settings_container.container-fluid
.row .row
.col-lg-10.col-lg-offset-1 .col-md-12
= render "shared/settings_nav" = render "shared/settings_nav"
.row .row
.col-lg-8.col-lg-offset-2 .col-md-12
- content_for :submit_block do - content_for :submit_block do
= link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default" = link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default"
= submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile" = submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile"

View file

@ -7,16 +7,15 @@
.container-fluid .container-fluid
.row .row
.col-lg-10.col-lg-offset-1 .col-md-3
= render "shared/settings_nav" = render "shared/settings_nav"
.col-md-9
.row
.col-lg-8.col-lg-offset-2
%h3= t(".title") %h3= t(".title")
.row .row
.col-md-7.col-lg-5.col-lg-offset-2 .col-md-12
= render "add_remove_services" = render "add_remove_services"
.col-md-5.col-lg-3 .row
.col-md-12
%p %p
= t(".services_explanation") = t(".services_explanation")

View file

@ -7,14 +7,14 @@
.settings_container.services_page.container-fluid .settings_container.services_page.container-fluid
.row .row
.col-lg-10.col-lg-offset-1 .col-md-12
= render "shared/settings_nav" = render "shared/settings_nav"
.row .row
.col-lg-8.col-lg-offset-2 .col-md-12
= render "add_remove_services" = render "add_remove_services"
.row .row
.col-lg-8.col-lg-offset-2 .col-md-12
.services_explanation .services_explanation
= t(".services_explanation") = t(".services_explanation")

View file

@ -1,10 +1,14 @@
#section_header #section_header
%h2 %h2
= t("settings") = t("settings")
%ul.nav.nav-tabs#settings_nav .list-group#settings_nav
%li{class: current_page?(edit_profile_path) && "active"}= link_to t("profile"), edit_profile_path = link_to t("profile"), edit_profile_path,
%li{class: current_page?(edit_user_path) && "active"}= link_to t("account"), edit_user_path class: current_page?(edit_profile_path) ? "list-group-item active" : "list-group-item"
%li{class: current_page?(privacy_settings_path) && "active"}= link_to t("privacy"), privacy_settings_path = link_to t("account"), edit_user_path,
%li{class: current_page?(services_path) && "active"}= link_to t("_services"), services_path class: current_page?(edit_user_path) ? "list-group-item active" : "list-group-item"
%li{class: current_page?(api_openid_connect_user_applications_path) && "active"} = link_to t("privacy"), privacy_settings_path,
= link_to t("_applications"), api_openid_connect_user_applications_path class: current_page?(privacy_settings_path) ? "list-group-item active" : "list-group-item"
= link_to t("_services"), services_path,
class: current_page?(services_path) ? "list-group-item active" : "list-group-item"
= link_to t("_applications"), api_openid_connect_user_applications_path,
class: current_page?(api_openid_connect_user_applications_path) ? "list-group-item active" : "list-group-item"

View file

@ -6,11 +6,7 @@
= t(".edit_account") = t(".edit_account")
.row .row
.col-lg-10.col-lg-offset-1 .col-md-12
= render "shared/settings_nav"
.row
.col-lg-8.col-lg-offset-2
.row .row
.col-md-6 .col-md-6
%h3= t(".your_handle") %h3= t(".your_handle")
@ -173,42 +169,40 @@
%hr %hr
.row .row
.col-lg-7#account_data .col-md-6#account_data
.row
.col-md-6
%h3= t(".export_data") %h3= t(".export_data")
.form-group .form-group
- if current_user.exporting - if current_user.exporting
.export-in-progress= t(".export_in_progress") .export-in-progress= t(".export_in_progress")
- elsif current_user.export.present? - elsif current_user.export.present?
= link_to t(".request_export_update"), export_profile_user_path, method: :post, = link_to t(".request_export_update"), export_profile_user_path, method: :post,
class: "btn btn-default btn-block" class: "btn btn-default"
.small-horizontal-spacer .small-horizontal-spacer
= link_to t(".download_export"), download_profile_user_path, = link_to t(".download_export"), download_profile_user_path,
class: "btn btn-success btn-block" class: "btn btn-success"
.small-horizontal-spacer .small-horizontal-spacer
%h6 %h6
= t(".last_exported_at", timestamp: current_user.exported_at) = t(".last_exported_at", timestamp: current_user.exported_at)
- else - else
= link_to t(".request_export"), export_profile_user_path, method: :post, = link_to t(".request_export"), export_profile_user_path, method: :post,
class: "btn btn-default btn-block" class: "btn btn-default"
.form-group .form-group
- if current_user.exporting_photos - if current_user.exporting_photos
.export-in-progress= t(".export_photos_in_progress") .export-in-progress= t(".export_photos_in_progress")
- elsif current_user.exported_photos_file.present? - elsif current_user.exported_photos_file.present?
= link_to t(".request_export_photos_update"), export_photos_user_path, method: :post, = link_to t(".request_export_photos_update"), export_photos_user_path, method: :post,
class: "btn btn-default btn-block" class: "btn btn-default"
.small-horizontal-spacer .small-horizontal-spacer
= link_to t(".download_export_photos"), download_photos_user_path, class: "btn btn-success btn-block" = link_to t(".download_export_photos"), download_photos_user_path, class: "btn btn-success"
.small-horizontal-spacer .small-horizontal-spacer
%h6 %h6
= t(".last_exported_at", timestamp: current_user.exported_photos_at) = t(".last_exported_at", timestamp: current_user.exported_photos_at)
- else - else
= link_to t(".request_export_photos"), export_photos_user_path, method: :post, = link_to t(".request_export_photos"), export_photos_user_path, method: :post,
class: "btn btn-default btn-block" class: "btn btn-default"
.col-lg-5 .col-md-6
%h3 %h3
= t(".close_account_text") = t(".close_account_text")
.form-group .form-group

View file

@ -1,10 +1,4 @@
.row .row
.col-lg-10.col-lg-offset-1
= render "shared/settings_nav"
.row
.col-lg-8.col-lg-offset-2
.row
.col-md-12 .col-md-12
%h3 %h3
= t(".title") = t(".title")
@ -18,9 +12,9 @@
= f.check_box :strip_exif = f.check_box :strip_exif
= t(".strip_exif") = t(".strip_exif")
= f.submit t("users.edit.change"), class: "btn btn-primary pull-right" = f.submit t("users.edit.change"), class: "btn btn-primary pull-right"
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3 %h3
= t(".ignored_users") = t(".ignored_users")

View file

@ -1,2 +1,6 @@
.container-fluid .container-fluid
.row
.col-md-3
= render "shared/settings_nav"
.col-md-9
= render "edit" = render "edit"

View file

@ -1,2 +1,8 @@
.settings_container.container-fluid .settings_container.container-fluid
.row
.col-md-12
= render "shared/settings_nav"
.row
.col-md-12
= render "edit" = render "edit"

View file

@ -6,4 +6,8 @@
= t('.title') = t('.title')
.container-fluid .container-fluid
.row
.col-md-3
= render "shared/settings_nav"
.col-md-9
= render "privacy_settings" = render "privacy_settings"

View file

@ -6,4 +6,10 @@
= t(".title") = t(".title")
.settings_container.container-fluid .settings_container.container-fluid
.row
.col-md-12
= render "shared/settings_nav"
.row
.col-md-12
= render "privacy_settings" = render "privacy_settings"