Before Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 131 KiB |
@ -1,12 +0,0 @@
|
||||
.panel
|
||||
.panel-header= t 'about.links'
|
||||
.panel-list
|
||||
%ul
|
||||
- if user_signed_in?
|
||||
%li= link_to t('about.get_started'), root_path
|
||||
- else
|
||||
- if instance.open_registrations
|
||||
%li= link_to t('about.get_started'), new_user_registration_path
|
||||
%li= link_to t('auth.login'), new_user_session_path
|
||||
%li= link_to t('about.terms'), terms_path
|
||||
%li= link_to t('about.source_code'), 'https://github.com/chronister/mastodon'
|
@ -1,9 +0,0 @@
|
||||
.panel
|
||||
.panel-header= t 'about.version'
|
||||
.panel-body
|
||||
- if @instance_presenter.commit_hash == ""
|
||||
%strong= version.version_number
|
||||
- else
|
||||
%strong= version.version_number
|
||||
%strong= "#{@instance_presenter.commit_hash}"
|
||||
|
@ -1,8 +1,23 @@
|
||||
- content_for :page_title do
|
||||
= t('terms.title', instance: site_hostname)
|
||||
|
||||
.wrapper
|
||||
- if @instance_presenter.site_terms.present?
|
||||
= raw @instance_presenter.site_terms
|
||||
.landing-page
|
||||
.header-wrapper.compact
|
||||
.header
|
||||
.container.links
|
||||
.brand
|
||||
= link_to root_url do
|
||||
= image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
|
||||
|
||||
%ul.nav
|
||||
%li
|
||||
- if user_signed_in?
|
||||
= link_to t('settings.back'), root_url, class: 'webapp-btn'
|
||||
- else
|
||||
= t('terms.body_html')
|
||||
= link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
|
||||
%li= link_to t('about.about_this'), about_more_path
|
||||
%li= link_to t('about.other_instances'), 'https://joinmastodon.org/'
|
||||
|
||||
.extended-description
|
||||
.container
|
||||
= @instance_presenter.site_terms.html_safe.presence || t('terms.body_html')
|
||||
|
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
require 'sidekiq-scheduler'
|
||||
|
||||
class Scheduler::UserCleanupScheduler
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform
|
||||
User.where('confirmed_at is NULL AND confirmation_sent_at <= ?', 2.days.ago).find_in_batches do |batch|
|
||||
Account.where(id: batch.map(&:account_id)).delete_all
|
||||
User.where(id: batch.map(&:id)).delete_all
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,12 @@
|
||||
nl:
|
||||
activerecord:
|
||||
errors:
|
||||
models:
|
||||
account:
|
||||
attributes:
|
||||
username:
|
||||
invalid: alleen letters, nummers en underscores
|
||||
status:
|
||||
attributes:
|
||||
reblog:
|
||||
taken: van toot bestaat al
|