mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 12:39:08 +01:00
Remove superfluous card-default class
This commit is contained in:
parent
21fceccf2f
commit
b5a833e917
27 changed files with 35 additions and 35 deletions
|
@ -1,4 +1,4 @@
|
|||
.card.card-default.questionbox{data: { id: u.id }}
|
||||
.card.questionbox{data: { id: u.id }}
|
||||
.card-body
|
||||
.media
|
||||
.pull-left
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
.card.card-default.inbox--panel
|
||||
.card.inbox--panel
|
||||
.card-header
|
||||
%h3.card-title= t 'views.inbox.sidebar.questions.title'
|
||||
.card-body
|
||||
%button.btn.btn-block.btn-info{type: :button, id: 'ib-generate-question'}= t 'views.inbox.sidebar.questions.button'
|
||||
.card.card-default.inbox--panel
|
||||
.card.inbox--panel
|
||||
.card-header
|
||||
%h3.card-title= t 'views.inbox.sidebar.share.title'
|
||||
.card-body
|
||||
|
@ -13,7 +13,7 @@
|
|||
%a.btn.btn-block.btn-primary{target: '_blank', href: "http://www.tumblr.com/share/link?url=#{show_user_profile_url(current_user.screen_name)}&name=Ask%20me%20anything%21"}
|
||||
%i.fa.fa-fw.fa-tumblr
|
||||
= raw t('views.inbox.sidebar.share.button', service: "Tumblr")
|
||||
.card.card-default.inbox--panel
|
||||
.card.inbox--panel
|
||||
.card-header
|
||||
%h3.card-title Show author
|
||||
.card-body
|
||||
|
@ -21,7 +21,7 @@
|
|||
= bootstrap_form_tag url: inbox_path, method: :get do |f|
|
||||
= f.text_field :author, value: params[:author], placeholder: "username", prepend: "@" , hide_label: true
|
||||
= f.button "Show", name: nil, class: "btn btn-default btn-block btn-sm", id: "ib-author"
|
||||
.card.card-default.warning--panel
|
||||
.card.warning--panel
|
||||
.card-header
|
||||
%h3.card-title= t 'views.inbox.sidebar.actions.title'
|
||||
.card-body
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.col-md-3.col-sm-4.col-xs-12
|
||||
.card.card-default.hidden-xs
|
||||
.card.hidden-xs
|
||||
.list-group
|
||||
= list_group_item t('views.moderation.tabs.all'), moderation_path
|
||||
= list_group_item t('views.general.answer').pluralize(2), moderation_path('answer')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- unless report.nil? or report.target.nil? or report.user.nil? or report.type.nil?
|
||||
.card.card-default.moderationbox{data: { id: report.id }}
|
||||
.card.moderationbox{data: { id: report.id }}
|
||||
.card-header
|
||||
%img.img-rounded.answerbox--img{src: gravatar_url(report.user)}
|
||||
= raw t('views.moderation.moderationbox.reported', user: user_screen_name(report.user), content: report.type.sub('Reports::', ''), time: time_tooltip(report))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- header_class = if user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
||||
.card.card-default
|
||||
.card
|
||||
%div{class: header_class}
|
||||
%img.userbox--header{src: user.profile_header.url(:mobile)}
|
||||
.card-body
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
.col-md-3.col-xs-12.col-sm-4
|
||||
.card.card-default.hidden-xs
|
||||
.card.hidden-xs
|
||||
.list-group
|
||||
= list_group_item "New Notifications", notifications_path, badge: Notification.for(current_user).where(new: true).count
|
||||
= list_group_item "All Notifications", notifications_path('all')
|
||||
|
||||
.card.card-default.hidden-xs
|
||||
.card.hidden-xs
|
||||
.card-header
|
||||
Filter by Type
|
||||
.list-group
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.container.j2-page
|
||||
= render 'notification_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
.card.card-default
|
||||
.card
|
||||
%ul#notifications.list-group
|
||||
- if @notifications.count == 0
|
||||
%li.list-group-item.text-center
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
Load more
|
||||
|
||||
- if user_signed_in? and !current_user.answered? @question and current_user != @question.user and @question.user.privacy_allow_stranger_answers
|
||||
.card.card-default#q-answer-box
|
||||
.card#q-answer-box
|
||||
.card-header
|
||||
%h3.card-title= t('views.question.title')
|
||||
.card-body
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'user/settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
= render 'layouts/messages'
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
- if @services.count > 0
|
||||
= t 'views.settings.service.enabled'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.card.card-default.answerbox{data: { id: a.id, q_id: a.question.id }}
|
||||
.card.answerbox{data: { id: a.id, q_id: a.question.id }}
|
||||
- if @question.nil?
|
||||
.card-header
|
||||
.media.question-media
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- type ||= nil
|
||||
.card.card-default.questionbox{data: { id: q.id }}
|
||||
.card.questionbox{data: { id: q.id }}
|
||||
.card-body
|
||||
.media
|
||||
- if type == "discover"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.card.card-default
|
||||
.card
|
||||
.card-header
|
||||
%h3.card-title
|
||||
- if @user.motivation_header.blank?
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- header_class = if current_user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
||||
.card.card-default.hidden-xs
|
||||
.card.hidden-xs
|
||||
%div{class: header_class}
|
||||
%img.userbox--header{src: current_user.profile_header.url(:mobile)}
|
||||
.card-body
|
||||
|
@ -22,7 +22,7 @@
|
|||
.col-md-6.col-sm-6.col-xs-6
|
||||
%h4.entry-text#friend-count= current_user.friend_count
|
||||
%h6.entry-subtext= t('views.general.following')
|
||||
.card.card-default.hidden-xs
|
||||
.card.hidden-xs
|
||||
.list-group
|
||||
= list_group_item t('views.general.timeline'), root_path
|
||||
- if APP_CONFIG.dig(:features, :public, :enabled)
|
||||
|
@ -30,7 +30,7 @@
|
|||
- current_user.groups.each do |group|
|
||||
= list_group_item group.display_name, group_timeline_path(group.name)
|
||||
- unless @group.nil?
|
||||
.card.card-default.profile--panel.hidden-xs
|
||||
.card.profile--panel.hidden-xs
|
||||
.card-header
|
||||
%h3.card-title= t('views.group.members')
|
||||
.card-body
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- type ||= @type || :nil
|
||||
- header_class = if user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
||||
.card.card-default
|
||||
.card
|
||||
%div{class: header_class}
|
||||
%img.userbox--header{src: user.profile_header.url(:mobile)}
|
||||
.card-body
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h1= APP_CONFIG['site_name']
|
||||
%p= t 'views.about.subtitle'
|
||||
.container
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
.row
|
||||
.col-md-4
|
||||
|
@ -23,7 +23,7 @@
|
|||
%i.fa.fa-question
|
||||
%h4.heading-about.text-center
|
||||
FAQ
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
.row
|
||||
.col-md-4
|
||||
|
@ -45,7 +45,7 @@
|
|||
- User.where(contributor: true).each do |sup|
|
||||
%a{href: show_user_profile_path(sup.screen_name), title: sup.screen_name, data: { toggle: :tooltip, placement: :top }}
|
||||
%img.img-rounded.answerbox--img-small{src: sup.profile_picture.url(:medium)}
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
.row
|
||||
.col-md-3.col-sm-12.col-xs-12
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
= succeed '!' do
|
||||
= APP_CONFIG['site_name']
|
||||
.container
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
= raw_markdown_io "service-docs/en/help/faq.md"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title("Privacy Policy"))
|
||||
.container.j2-page
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
= raw_markdown_io "service-docs/en/policy/privacy.md"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title("Terms of Service"))
|
||||
.container.j2-page
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
= raw_markdown_io "service-docs/en/policy/terms.md"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'user/settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
= render 'layouts/messages'
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(resource, as: resource_name, url: '/settings/account', html: { method: :put }) do |f|
|
||||
/ Password field modal
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.card.card-default#profile
|
||||
.card#profile
|
||||
%img.profile--avatar{src: @user.profile_picture.url(:large)}
|
||||
- if user_signed_in? && current_user.admin?
|
||||
- if @user.admin?
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.col-md-3.col-xs-12.col-sm-4
|
||||
.card.card-default
|
||||
.card
|
||||
.list-group
|
||||
= list_group_item t('views.settings.tabs.account'), edit_user_registration_path
|
||||
= list_group_item t('views.settings.tabs.profile'), edit_user_profile_path
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.card.card-default.profile--panel#profile-stats
|
||||
.card.profile--panel#profile-stats
|
||||
.card-header
|
||||
%h3.card-title Stats
|
||||
.card-body
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.row
|
||||
= render 'settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
%h2 Your Profile Data
|
||||
%p Everything we have about you! Really, not that much as you might expect.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-9
|
||||
= render 'layouts/messages'
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(current_user, url: {action: "edit"}, :html => { :multipart => true }, method: "patch") do |f|
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
= render 'layouts/messages'
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(current_user, url: {action: "edit_privacy"}, method: "patch") do |f|
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
= render 'layouts/messages'
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
%b Presets:
|
||||
%a{href: '#', class: 'theme_preset', data: {preset: 'rs'}} Retrospring Purple,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'settings_tabs'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
= render 'layouts/messages'
|
||||
.card.card-default
|
||||
.card
|
||||
.card-body
|
||||
%h2 Export your data
|
||||
%p
|
||||
|
|
Loading…
Reference in a new issue