parent
fa29ef3a41
commit
2c70f0ecaa
@ -1,15 +0,0 @@ |
|||||||
/* |
|
||||||
* This is a manifest file that'll be compiled into application.css, which will include all the files |
|
||||||
* listed below. |
|
||||||
* |
|
||||||
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, |
|
||||||
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. |
|
||||||
* |
|
||||||
* You're free to add application-wide styles to this file and they'll appear at the bottom of the |
|
||||||
* compiled file so the styles you add here take precedence over styles defined in any styles |
|
||||||
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new |
|
||||||
* file per style scope. |
|
||||||
* |
|
||||||
*= require_tree . |
|
||||||
*= require_self |
|
||||||
*/ |
|
@ -0,0 +1,39 @@ |
|||||||
|
$primary-color: #ff7473; |
||||||
|
$secondary-color: #ffc952; |
||||||
|
$tertiary-color: #47b8e0; |
||||||
|
$quaternary-color: #34314c; |
||||||
|
$background-color: #fff; |
||||||
|
|
||||||
|
@import url("https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic"); |
||||||
|
@import "font-awesome-sprockets"; |
||||||
|
@import "font-awesome"; |
||||||
|
|
||||||
|
body { |
||||||
|
font-family: 'Noto Sans', sans-serif; |
||||||
|
background: $secondary-color; |
||||||
|
font-size: 13px; |
||||||
|
line-height: 18px; |
||||||
|
color: $quaternary-color; |
||||||
|
} |
||||||
|
|
||||||
|
.container { |
||||||
|
width: 800px; |
||||||
|
margin: 0 auto; |
||||||
|
} |
||||||
|
|
||||||
|
.footer { |
||||||
|
text-align: center; |
||||||
|
padding: 100px 0; |
||||||
|
font-size: 12px; |
||||||
|
color: lighten($quaternary-color, 15%); |
||||||
|
|
||||||
|
.mastodon-link { |
||||||
|
color: $quaternary-color; |
||||||
|
text-decoration: none; |
||||||
|
font-weight: bold; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
@import 'home'; |
||||||
|
@import 'profile'; |
@ -1,10 +0,0 @@ |
|||||||
.footer { |
|
||||||
text-align: center; |
|
||||||
padding: 100px 0; |
|
||||||
|
|
||||||
.mastodon-link { |
|
||||||
color: #566270; |
|
||||||
text-decoration: none; |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
} |
|
@ -1,2 +1,13 @@ |
|||||||
module ProfileHelper |
module ProfileHelper |
||||||
|
def display_name(account) |
||||||
|
account.display_name.blank? ? account.username : account.display_name |
||||||
|
end |
||||||
|
|
||||||
|
def profile_url(account) |
||||||
|
account.local? ? super(name: account.username) : account.url |
||||||
|
end |
||||||
|
|
||||||
|
def status_url(status) |
||||||
|
status.local? ? super(name: status.account.username, id: status.stream_entry.id) : status.url |
||||||
|
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,8 @@ |
|||||||
= link_to (status.account.local? ? profile_url(name: status.account.username) : status.account.url), class: 'name' do |
= link_to profile_url(status.account), class: 'name' do |
||||||
%strong= status.account.display_name.blank? ? status.account.username : status.account.display_name |
%strong= display_name(status.account) |
||||||
= "@#{status.account.acct}" |
= "@#{status.account.acct}" |
||||||
|
|
||||||
= link_to status.local? ? status_url(name: status.account.username, id: status.stream_entry.id) : status.url, class: 'time' do |
= link_to status_url(status), class: 'time' do |
||||||
%span{ title: status.created_at } |
%span{ title: status.created_at } |
||||||
= time_ago_in_words(status.created_at) |
= time_ago_in_words(status.created_at) |
||||||
ago |
ago |
||||||
|
@ -0,0 +1,11 @@ |
|||||||
|
class AddAttachmentAvatarToAccounts < ActiveRecord::Migration |
||||||
|
def self.up |
||||||
|
change_table :accounts do |t| |
||||||
|
t.attachment :avatar |
||||||
|
end |
||||||
|
end |
||||||
|
|
||||||
|
def self.down |
||||||
|
remove_attachment :accounts, :avatar |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue