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