Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Merge branch 'ui-refresh' into content-moderation

Matt Roberts7c2c818c9379
diff --cc app/models/entity/tenant.go
index 7787a0b5f,69165efc3..b1f257943
--- a/app/models/entity/tenant.go
+++ b/app/models/entity/tenant.go
@@@ -6,23 -4,22 +6,24 @@@ import
// Tenant represents a tenant
type Tenant struct {
- ID int `json:"id"`
- Name string `json:"name"`
- Subdomain string `json:"subdomain"`
- Invitation string `json:"invitation"`
- WelcomeMessage string `json:"welcomeMessage"`
- WelcomeHeader string `json:"welcomeHeader"`
- CNAME string `json:"cname"`
- Status enum.TenantStatus `json:"status"`
- Locale string `json:"locale"`
- IsPrivate bool `json:"isPrivate"`
- LogoBlobKey string `json:"logoBlobKey"`
- CustomCSS string `json:"-"`
- AllowedSchemes string `json:"allowedSchemes"`
- IsEmailAuthAllowed bool `json:"isEmailAuthAllowed"`
- IsFeedEnabled bool `json:"isFeedEnabled"`
- PreventIndexing bool `json:"preventIndexing"`
+ ID int `json:"id"`
+ Name string `json:"name"`
+ Subdomain string `json:"subdomain"`
+ Invitation string `json:"invitation"`
+ WelcomeMessage string `json:"welcomeMessage"`
++ WelcomeHeader string `json:"welcomeHeader"`
+ CNAME string `json:"cname"`
+ Status enum.TenantStatus `json:"status"`
+ Locale string `json:"locale"`
+ IsPrivate bool `json:"isPrivate"`
+ LogoBlobKey string `json:"logoBlobKey"`
+ CustomCSS string `json:"-"`
+ AllowedSchemes string `json:"allowedSchemes"`
+ IsEmailAuthAllowed bool `json:"isEmailAuthAllowed"`
+ IsFeedEnabled bool `json:"isFeedEnabled"`
+ PreventIndexing bool `json:"preventIndexing"`
+ IsModerationEnabled bool `json:"isModerationEnabled"`
+ IsCommercial bool `json:"isCommercial"`
}
func (t *Tenant) IsDisabled() bool {
diff --cc app/pkg/dbx/setup.sql
index da434a116,592cfa75c..cc6d2d86b
--- a/app/pkg/dbx/setup.sql
+++ b/app/pkg/dbx/setup.sql
@@@ -2,44 -2,47 +2,44 @@@ TRUNCATE TABLE blobs RESTART IDENTITY C
TRUNCATE TABLE logs RESTART IDENTITY CASCADE;
TRUNCATE TABLE tenants RESTART IDENTITY CASCADE;
- INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
- VALUES ('Demonstration', 'demo', now(), '', '', '', 1, false, '', '', 'en', true, true, false, false, false);
-INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing)
-VALUES ('Demonstration', 'demo', now(), '', '', '', 1, false, '', '', 'en', true, true, false);
++INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, welcome_header, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
++VALUES ('Demonstration', 'demo', now(), '', '', '', '', 1, false, '', '', 'en', true, true, false, false, false);
-INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
+INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
VALUES ('Jon Snow', '[email protected]', 1, now(), 3, 1, 2, '');
-INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
+INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
VALUES (1, 1, 'facebook', 'FB1234', now());
-INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
+INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
VALUES ('Arya Stark', '[email protected]', 1, now(), 1, 1, 2, '');
-INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
+INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
VALUES (2, 1, 'google', 'GO5678', now());
-INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
+INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
VALUES ('Sansa Stark', '[email protected]', 1, now(), 1, 1, 2, '');
- INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
- VALUES ('Avengers', 'avengers', now(), 'feedback.avengers.com', '', '', 1, false, '', '', 'en', true, true, false, false, false);
-INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing)
-VALUES ('Avengers', 'avengers', now(), 'feedback.avengers.com', '', '', 1, false, '', '', 'en', true, true, false);
++INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, welcome_header, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
++VALUES ('Avengers', 'avengers', now(), 'feedback.avengers.com', '', '', '', 1, false, '', '', 'en', true, true, false, false, false);
-INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
+INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
VALUES ('Tony Stark', '[email protected]', 2, now(), 3, 1, 2, '');
-INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
+INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
VALUES (4, 2, 'facebook', 'FB2222', now());
-INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
+INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
VALUES ('The Hulk', '[email protected]', 2, now(), 1, 1, 2, '');
-INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
+INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
VALUES (5, 2, 'google', 'GO1111', now());
- INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
- VALUES ('Orange Inc', 'orange', now(), 'feedback.orange.com', '', '', 1, false, '', '', 'en', true, true, false, false, false);
--- Create a tenant that has reached the end of it's trial period
-INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing)
-VALUES ('Trial Expired', 'trial-expired', now(), 'feedback.trial-expired.com', '', '', 1, false, '', '', 'en', true, true, false);
-INSERT INTO tenants_billing (tenant_id, paddle_plan_id, paddle_subscription_id, status, subscription_ends_at, trial_ends_at)
-VALUES (3, 1, 1,1, now(), CURRENT_DATE - INTERVAL '10 days');
++INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, welcome_header, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
++VALUES ('Orange Inc', 'orange', now(), 'feedback.orange.com', '', '', '', 1, false, '', '', 'en', true, true, false, false, false);
INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
-VALUES ('Trial Expired', '[email protected]', 3, now(), 3, 1, 2, '');
+VALUES ('Orange Admin', '[email protected]', 3, now(), 3, 1, 2, '');
INSERT INTO user_providers (user_id, tenant_id, provider, provider_uid, created_at)
VALUES (6, 3, 'facebook', 'FB3333', now());
- INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
- VALUES ('Demonstration German', 'german', now(), '', '', '', 1, false, '', '', 'de', true, true, false, false, false);
-INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing)
-VALUES ('Demonstration German', 'german', now(), '', '', '', 1, false, '', '', 'de', true, true, false);
++INSERT INTO tenants (name, subdomain, created_at, cname, invitation, welcome_message, welcome_header, status, is_private, custom_css, logo_bkey, locale, is_email_auth_allowed, is_feed_enabled, prevent_indexing, is_moderation_enabled, is_pro)
++VALUES ('Demonstration German', 'german', now(), '', '', '', '', 1, false, '', '', 'de', true, true, false, false, false);
INSERT INTO users (name, email, tenant_id, created_at, role, status, avatar_type, avatar_bkey)
VALUES ('Jon Snow', '[email protected]', 4, now(), 3, 1, 2, '');
diff --cc app/pkg/web/testdata/home_ssr.html
index 04444844f,8398825ae..727bc1b48
--- a/app/pkg/web/testdata/home_ssr.html
+++ b/app/pkg/web/testdata/home_ssr.html
@@@ -45,7 -45,7 +45,7 @@@
<script id="server-data" type="application/json">
- {"contextID":"CONTEXT_ID","description":"My Page Description","page":"Test.page","props":{"countPerStatus":{},"posts":[],"tags":[]},"sessionID":"","settings":{"allowAllowedSchemes":true,"assetsURL":"https://demo.test.fider.io:3000","baseURL":"https://demo.test.fider.io:3000","domain":".test.fider.io","environment":"test","googleAnalytics":"","hasLegal":true,"isBillingEnabled":false,"locale":"en","localeDirection":"ltr","mode":"multi","oauth":[],"postWithTags":true},"tenant":{"id":0,"name":"","subdomain":"","invitation":"","welcomeMessage":"","cname":"","status":0,"locale":"en","isPrivate":false,"logoBlobKey":"","allowedSchemes":"","isEmailAuthAllowed":false,"isFeedEnabled":false,"preventIndexing":false,"isModerationEnabled":false,"isCommercial":false},"title":"My Page Title · "}
- {"contextID":"CONTEXT_ID","description":"My Page Description","page":"Test.page","props":{"countPerStatus":{},"posts":[],"tags":[]},"sessionID":"","settings":{"allowAllowedSchemes":true,"assetsURL":"https://demo.test.fider.io:3000","baseURL":"https://demo.test.fider.io:3000","domain":".test.fider.io","environment":"test","googleAnalytics":"","hasLegal":true,"isBillingEnabled":false,"locale":"en","localeDirection":"ltr","mode":"multi","oauth":[],"postWithTags":true},"tenant":{"id":0,"name":"","subdomain":"","invitation":"","welcomeMessage":"","welcomeHeader":"","cname":"","status":0,"locale":"en","isPrivate":false,"logoBlobKey":"","allowedSchemes":"","isEmailAuthAllowed":false,"isFeedEnabled":false,"preventIndexing":false},"title":"My Page Title · "}
++ {"contextID":"CONTEXT_ID","description":"My Page Description","page":"Test.page","props":{"countPerStatus":{},"posts":[],"tags":[]},"sessionID":"","settings":{"allowAllowedSchemes":true,"assetsURL":"https://demo.test.fider.io:3000","baseURL":"https://demo.test.fider.io:3000","domain":".test.fider.io","environment":"test","googleAnalytics":"","hasLegal":true,"isBillingEnabled":false,"locale":"en","localeDirection":"ltr","mode":"multi","oauth":[],"postWithTags":true},"tenant":{"id":0,"name":"","subdomain":"","invitation":"","welcomeMessage":"","welcomeHeader":"","cname":"","status":0,"locale":"en","isPrivate":false,"logoBlobKey":"","allowedSchemes":"","isEmailAuthAllowed":false,"isFeedEnabled":false,"preventIndexing":false,"isModerationEnabled":false,"isCommercial":false},"title":"My Page Title · "}
</script>
diff --cc app/pkg/web/testdata/tenant.html
index 627dd2ee6,e62973501..9399560fd
--- a/app/pkg/web/testdata/tenant.html
+++ b/app/pkg/web/testdata/tenant.html
@@@ -45,7 -45,7 +45,7 @@@
<script id="server-data" type="application/json">
- {"contextID":"CONTEXT_ID","page":"","props":{},"sessionID":"","settings":{"allowAllowedSchemes":true,"assetsURL":"https://demo.test.fider.io:3000","baseURL":"https://demo.test.fider.io:3000","domain":".test.fider.io","environment":"test","googleAnalytics":"","hasLegal":true,"isBillingEnabled":false,"locale":"en","localeDirection":"ltr","mode":"multi","oauth":[],"postWithTags":true},"tenant":{"id":0,"name":"Game of Thrones","subdomain":"","invitation":"","welcomeMessage":"","cname":"","status":0,"locale":"","isPrivate":false,"logoBlobKey":"","allowedSchemes":"","isEmailAuthAllowed":false,"isFeedEnabled":false,"preventIndexing":false,"isModerationEnabled":false,"isCommercial":false},"title":"Game of Thrones"}
- {"contextID":"CONTEXT_ID","page":"","props":{},"sessionID":"","settings":{"allowAllowedSchemes":true,"assetsURL":"https://demo.test.fider.io:3000","baseURL":"https://demo.test.fider.io:3000","domain":".test.fider.io","environment":"test","googleAnalytics":"","hasLegal":true,"isBillingEnabled":false,"locale":"en","localeDirection":"ltr","mode":"multi","oauth":[],"postWithTags":true},"tenant":{"id":0,"name":"Game of Thrones","subdomain":"","invitation":"","welcomeMessage":"","welcomeHeader":"","cname":"","status":0,"locale":"","isPrivate":false,"logoBlobKey":"","allowedSchemes":"","isEmailAuthAllowed":false,"isFeedEnabled":false,"preventIndexing":false},"title":"Game of Thrones"}
++ {"contextID":"CONTEXT_ID","page":"","props":{},"sessionID":"","settings":{"allowAllowedSchemes":true,"assetsURL":"https://demo.test.fider.io:3000","baseURL":"https://demo.test.fider.io:3000","domain":".test.fider.io","environment":"test","googleAnalytics":"","hasLegal":true,"isBillingEnabled":false,"locale":"en","localeDirection":"ltr","mode":"multi","oauth":[],"postWithTags":true},"tenant":{"id":0,"name":"Game of Thrones","subdomain":"","invitation":"","welcomeMessage":"","welcomeHeader":"","cname":"","status":0,"locale":"","isPrivate":false,"logoBlobKey":"","allowedSchemes":"","isEmailAuthAllowed":false,"isFeedEnabled":false,"preventIndexing":false,"isModerationEnabled":false,"isCommercial":false},"title":"Game of Thrones"}
</script>
diff --cc app/services/sqlstore/dbEntities/tenant.go
index 71243284a,000000000..59daf6b23
mode 100644,000000..100644
--- a/app/services/sqlstore/dbEntities/tenant.go
+++ b/app/services/sqlstore/dbEntities/tenant.go
@@@ -1,66 -1,0 +1,68 @@@
+package dbEntities
+
+import (
+ "github.com/getfider/fider/app/models/entity"
+ "github.com/getfider/fider/app/models/enum"
+ "github.com/getfider/fider/app/pkg/env"
+ "github.com/getfider/fider/app/services"
+)
+
+type Tenant struct {
+ ID int `db:"id"`
+ Name string `db:"name"`
+ Subdomain string `db:"subdomain"`
+ CNAME string `db:"cname"`
+ Invitation string `db:"invitation"`
+ WelcomeMessage string `db:"welcome_message"`
++ WelcomeHeader string `db:"welcome_header"`
+ Status int `db:"status"`
+ Locale string `db:"locale"`
+ IsPrivate bool `db:"is_private"`
+ LogoBlobKey string `db:"logo_bkey"`
+ CustomCSS string `db:"custom_css"`
+ AllowedSchemes string `db:"allowed_schemes"`
+ IsEmailAuthAllowed bool `db:"is_email_auth_allowed"`
+ IsFeedEnabled bool `db:"is_feed_enabled"`
+ PreventIndexing bool `db:"prevent_indexing"`
+ IsModerationEnabled bool `db:"is_moderation_enabled"`
+ IsPro bool `db:"is_pro"`
+}
+
+func (t *Tenant) ToModel() *entity.Tenant {
+ if t == nil {
+ return nil
+ }
+
+ // Compute isCommercial based on hosting mode
+ var isCommercial bool
+ if env.IsSingleHostMode() {
+ // Self-hosted: check if license service validated successfully
+ isCommercial = services.IsCommercialFeatureEnabled(services.FeatureContentModeration)
+ } else {
+ // Hosted multi-tenant: check if this tenant has Pro subscription
+ isCommercial = t.IsPro
+ }
+
+ tenant := &entity.Tenant{
+ ID: t.ID,
+ Name: t.Name,
+ Subdomain: t.Subdomain,
+ CNAME: t.CNAME,
+ Invitation: t.Invitation,
+ WelcomeMessage: t.WelcomeMessage,
++ WelcomeHeader: t.WelcomeHeader,
+ Status: enum.TenantStatus(t.Status),
+ Locale: t.Locale,
+ IsPrivate: t.IsPrivate,
+ LogoBlobKey: t.LogoBlobKey,
+ CustomCSS: t.CustomCSS,
+ AllowedSchemes: t.AllowedSchemes,
+ IsEmailAuthAllowed: t.IsEmailAuthAllowed,
+ IsFeedEnabled: t.IsFeedEnabled,
+ PreventIndexing: t.PreventIndexing,
+ IsModerationEnabled: t.IsModerationEnabled,
+ IsCommercial: isCommercial,
+ }
+
+ return tenant
+}
diff --cc app/services/sqlstore/postgres/comment.go
index 1a2e6d256,ba195065f..a6a1176e4
--- a/app/services/sqlstore/postgres/comment.go
+++ b/app/services/sqlstore/postgres/comment.go
@@@ -232,10 -244,8 +232,10 @@@ func getCommentsByPost(ctx context.Cont
ON ar.comment_id = c.id
WHERE p.id = $1
AND p.tenant_id = $2
- AND c.deleted_at IS NULL
- ORDER BY c.created_at DESC`, q.Post.ID, tenant.ID, userId)
+ AND c.deleted_at IS NULL%s
- ORDER BY c.created_at ASC`, approvalFilter)
++ ORDER BY c.created_at DESC`, approvalFilter)
+
+ err := trx.Select(&comments, query, q.Post.ID, tenant.ID, userId)
if err != nil {
return errors.Wrap(err, "failed get comments of post with id '%d'", q.Post.ID)
}
diff --cc app/services/sqlstore/postgres/tenant.go
index 8f5fb358c,2c91c0817..03e9a4638
--- a/app/services/sqlstore/postgres/tenant.go
+++ b/app/services/sqlstore/postgres/tenant.go
@@@ -204,13 -290,14 +205,13 @@@ func createTenant(ctx context.Context,
func getFirstTenant(ctx context.Context, q *query.GetFirstTenant) error {
return using(ctx, func(trx *dbx.Trx, _ *entity.Tenant, _ *entity.User) error {
- tenant := dbTenant{}
-
- err := trx.Get(&tenant, `
- SELECT id, name, subdomain, cname, invitation, locale, welcome_message, welcome_header, status, is_private, logo_bkey, custom_css, allowed_schemes, is_email_auth_allowed, is_feed_enabled, prevent_indexing
- FROM tenants
- ORDER BY id LIMIT 1
- `)
+ tenant := dbEntities.Tenant{}
- err := trx.Get(&tenant, `
- SELECT id, name, subdomain, cname, invitation, locale, welcome_message, status, is_private, logo_bkey, custom_css, allowed_schemes, is_email_auth_allowed, is_feed_enabled, is_moderation_enabled, prevent_indexing, is_pro
- FROM tenants
- ORDER BY id LIMIT 1
- `)
++ err := trx.Get(&tenant, `
++ SELECT id, name, subdomain, cname, invitation, locale, welcome_message, welcome_header, status, is_private, logo_bkey, custom_css, allowed_schemes, is_email_auth_allowed, is_feed_enabled, is_moderation_enabled, prevent_indexing, is_pro
++ FROM tenants
++ ORDER BY id LIMIT 1
++ `)
if err != nil {
return errors.Wrap(err, "failed to get first tenant")
}
@@@ -222,14 -309,14 +223,14 @@@
func getTenantByDomain(ctx context.Context, q *query.GetTenantByDomain) error {
return using(ctx, func(trx *dbx.Trx, _ *entity.Tenant, _ *entity.User) error {
- tenant := dbTenant{}
-
- err := trx.Get(&tenant, `
- SELECT id, name, subdomain, cname, invitation, locale, welcome_message, welcome_header, status, is_private, logo_bkey, custom_css, allowed_schemes, is_email_auth_allowed, is_feed_enabled, prevent_indexing
- FROM tenants t
- WHERE subdomain = $1 OR subdomain = $2 OR cname = $3
- ORDER BY cname DESC
- `, env.Subdomain(q.Domain), q.Domain, q.Domain)
+ tenant := dbEntities.Tenant{}
+
- err := trx.Get(&tenant, `
- SELECT id, name, subdomain, cname, invitation, locale, welcome_message, status, is_private, logo_bkey, custom_css, allowed_schemes, is_email_auth_allowed, is_feed_enabled, is_moderation_enabled, prevent_indexing, is_pro
- FROM tenants t
- WHERE subdomain = $1 OR subdomain = $2 OR cname = $3
- ORDER BY cname DESC
- `, env.Subdomain(q.Domain), q.Domain, q.Domain)
++ err := trx.Get(&tenant, `
++ SELECT id, name, subdomain, cname, invitation, locale, welcome_message, welcome_header, status, is_private, logo_bkey, custom_css, allowed_schemes, is_email_auth_allowed, is_feed_enabled, is_moderation_enabled, prevent_indexing, is_pro
++ FROM tenants t
++ WHERE subdomain = $1 OR subdomain = $2 OR cname = $3
++ ORDER BY cname DESC
++ `, env.Subdomain(q.Domain), q.Domain, q.Domain)
if err != nil {
return errors.Wrap(err, "failed to get tenant with domain '%s'", q.Domain)
}
diff --cc commercial/pages/Administration/ContentModeration.page.scss
index 56796c134,000000000..4151f29f0
mode 100644,000000..100644
--- a/commercial/pages/Administration/ContentModeration.page.scss
+++ b/commercial/pages/Administration/ContentModeration.page.scss
@@@ -1,61 -1,0 +1,101 @@@
+@use "~@fider/assets/styles/variables.scss" as *;
+
+#p-admin-moderation {
- .page-title {
- font-size: 1.5rem;
- font-weight: 600;
- margin-bottom: 1.5rem;
-
- .page-subtitle {
- display: block;
- font-size: 1rem;
- font-weight: normal;
- color: var(--colors-gray-600);
- margin-top: 0.25rem;
- }
- }
++ background-color: var(--colors-gray-100);
++ padding-top: spacing(8);
++ padding-bottom: spacing(12);
+}
+
+.c-moderation-page {
+ width: 100%;
++
++ &__list {
++ display: flex;
++ flex-direction: column;
++ gap: spacing(4);
++ }
++
++ &__divider {
++ display: flex;
++ align-items: center;
++ gap: spacing(3);
++ margin-top: spacing(6);
++ margin-bottom: spacing(4);
++
++ &-title {
++ font-size: get("font.size.lg");
++ font-weight: get("font.weight.semibold");
++ color: var(--colors-blue-500);
++ white-space: nowrap;
++ }
++
++ &-line {
++ flex-grow: 1;
++ height: 2px;
++ background-color: var(--colors-blue-500);
++ }
++ }
+}
+
+.c-moderation-item {
- transition: all 0.3s ease;
++ background-color: var(--colors-white);
++ @include dark-mode {
++ background-color: var(--colors-gray-200);
++ }
++ border-radius: get("border.radius.xlarge");
++ padding: spacing(6) spacing(7);
++ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
++ transition: box-shadow 0.2s ease-in-out;
++ cursor: pointer;
+
+ &:hover {
- background-color: var(--colors-blue-100);
++ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
++ }
++
++ &__content {
++ width: 100%;
++ }
++
++ &__user-email {
++ color: var(--colors-gray-700);
++ font-weight: normal;
+ }
+
+ &__actions {
+ transition: opacity 0.2s ease, visibility 0.2s ease;
+
+ .c-moderation-item:hover & {
+ visibility: visible;
+ opacity: 1;
+ }
+ }
+
++ &__timestamp {
++ color: var(--colors-gray-700);
++ font-size: get("font.size.sm");
++ white-space: nowrap;
++ }
++
+ &__post-reference {
+ color: var(--colors-gray-600);
+
+ a {
+ color: var(--colors-blue-700);
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+ }
+}
+
+// Responsive adjustments
+@media (max-width: 768px) {
+ .c-moderation-item {
+ &__actions {
+ visibility: visible;
+ opacity: 1;
+ }
+ }
+}
diff --cc commercial/pages/Administration/ContentModeration.page.tsx
index b13e2e6e6,000000000..4903f6148
mode 100644,000000..100644
--- a/commercial/pages/Administration/ContentModeration.page.tsx
+++ b/commercial/pages/Administration/ContentModeration.page.tsx
@@@ -1,307 -1,0 +1,304 @@@
+import "./ContentModeration.page.scss"
+
+import React, { useState, useEffect } from "react"
+import { Button, Avatar, Loader, Icon, Markdown } from "@fider/components/common"
+import { Header } from "@fider/components"
+import { HStack, VStack } from "@fider/components/layout"
+import { actions, chopString, http, notify } from "@fider/services"
+import { User, UserStatus } from "@fider/models"
+import { useFider } from "@fider/hooks"
+import { Trans } from "@lingui/react/macro"
+import IconCheck from "@fider/assets/images/heroicons-check.svg"
+import IconX from "@fider/assets/images/heroicons-x.svg"
+import IconShieldCheck from "@fider/assets/images/heroicons-shieldcheck.svg"
+import IconBan from "@fider/assets/images/heroicons-x-circle.svg"
+import { Moment } from "@fider/components/common"
+
+interface ModerationItem {
+ type: "post" | "comment"
+ id: number
+ postId?: number
+ postNumber?: number
+ postSlug?: string
+ title?: string
+ content: string
+ user: User
+ createdAt: string
+ postTitle?: string
+}
+
+interface ContentModerationPageState {
+ items: ModerationItem[]
+ loading: boolean
+}
+
+const ContentModerationPage = () => {
+ const [state, setState] = useState<ContentModerationPageState>({
+ items: [],
+ loading: true,
+ })
+ const fider = useFider()
+
+ const fetchItems = async () => {
+ setState((prev) => ({ ...prev, loading: true }))
+ const result = await http.get<{ items: ModerationItem[] }>("/_api/admin/moderation/items")
+ if (result.ok) {
+ setState({ items: result.data.items, loading: false })
+ } else {
+ setState((prev) => ({ ...prev, loading: false }))
+ notify.error(<Trans id="moderation.fetch.error">Failed to fetch moderation items</Trans>)
+ }
+ }
+
+ useEffect(() => {
+ fetchItems()
+ }, [])
+
+ const handleApprovePost = async (postId: number) => {
+ const result = await actions.approvePost(postId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.post.published">Post published successfully</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "post" && item.id === postId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.post.publish.error">Failed to publish post</Trans>)
+ }
+ }
+
+ const handleDeclinePost = async (postId: number) => {
+ const result = await actions.declinePost(postId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.post.deleted">Post deleted successfully</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "post" && item.id === postId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.post.delete.error">Failed to delete post</Trans>)
+ }
+ }
+
+ const handleApproveComment = async (commentId: number) => {
+ const result = await actions.approveComment(commentId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.comment.published">Comment published successfully</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "comment" && item.id === commentId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.comment.publish.error">Failed to publish comment</Trans>)
+ }
+ }
+
+ const handleDeclineComment = async (commentId: number) => {
+ const result = await actions.declineComment(commentId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.comment.deleted">Comment deleted successfully</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "comment" && item.id === commentId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.comment.delete.error">Failed to delete comment</Trans>)
+ }
+ }
+
+ const handleApprovePostAndVerify = async (postId: number) => {
+ const result = await actions.approvePostAndVerify(postId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.post.published.verified">Post published and user verified</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "post" && item.id === postId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.post.publish.verify.error">Failed to publish post and verify user</Trans>)
+ }
+ }
+
+ const handleDeclinePostAndBlock = async (postId: number) => {
+ const result = await actions.declinePostAndBlock(postId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.post.deleted.blocked">Post deleted and user blocked</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "post" && item.id === postId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.post.delete.block.error">Failed to delete post and block user</Trans>)
+ }
+ }
+
+ const handleApproveCommentAndVerify = async (commentId: number) => {
+ const result = await actions.approveCommentAndVerify(commentId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.comment.published.verified">Comment published and user verified</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "comment" && item.id === commentId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.comment.publish.verify.error">Failed to publish comment and verify user</Trans>)
+ }
+ }
+
+ const handleDeclineCommentAndBlock = async (commentId: number) => {
+ const result = await actions.declineCommentAndBlock(commentId)
+ if (result.ok) {
+ notify.success(<Trans id="moderation.comment.deleted.blocked">Comment deleted and user blocked</Trans>)
+ setState((prev) => ({
+ ...prev,
+ items: prev.items.filter((item) => !(item.type === "comment" && item.id === commentId)),
+ }))
+ } else {
+ notify.error(<Trans id="moderation.comment.delete.block.error">Failed to delete comment and block user</Trans>)
+ }
+ }
+
+ const renderDivider = (title: string, count: number) => {
+ return (
- <HStack spacing={2} className="py-4 w-full">
- <div className="text-blue-500 text-title">
++ <div className="c-moderation-page__divider">
++ <div className="c-moderation-page__divider-title">
+ {title} ({count})
+ </div>
- <hr className="border-blue-500 flex-grow"></hr>
- </HStack>
++ </div>
+ )
+ }
+
+ const handlePostClick = (link: string) => {
+ window.location.href = link
+ }
+
+ const renderModerationItem = (item: ModerationItem) => {
- const containerClasses = `c-moderation-item flex flex-y p-3 rounded-md hover clickable`
-
+ const title = item.type == "post" ? item.title : item.postTitle
+ const link = item.type == "post" ? `/posts/${item.postNumber}/${item.postSlug}` : `/posts/${item.postNumber}/${item.postSlug}#comment-${item.id}`
+ const blocked = item.user.status === UserStatus.Blocked && <span className="text-red-700">blocked</span>
+
+ return (
- <div key={`${item.type}-${item.id}`} className={containerClasses} onClick={() => handlePostClick(link)}>
++ <div key={`${item.type}-${item.id}`} className="c-moderation-item" onClick={() => handlePostClick(link)}>
+ <div className="c-moderation-item__content">
+ <HStack spacing={4} align="start" justify="between">
- <HStack spacing={4} align="start">
- <Avatar user={item.user} size="normal" />
++ <HStack spacing={4} align="start" className="flex-grow">
++ <Avatar user={item.user} size="large" />
+ <VStack spacing={2} className="flex-grow">
- <>
- <HStack>
- <span className="text-medium">
- {item.user.name} <span className="text-normal">&lt;{item.user.email}&gt;</span>
- </span>
- {blocked}
- </HStack>
- {item.type === "post" && <h3 className="text-medium m-0">{title}</h3>}
- <p className="m-0 text-body text-break">
- <Markdown text={chopString(item.content, 200)} style="plainText" />
- </p>
- {item.type === "comment" && <p className="m-0 text-muted text-break">{title}</p>}
- </>
++ <HStack spacing={2}>
++ <span className="text-semibold">
++ {item.user.name} <span className="c-moderation-item__user-email">&lt;{item.user.email}&gt;</span>
++ </span>
++ {blocked}
++ </HStack>
++ {item.type === "post" && <h3 className="text-semibold m-0">{title}</h3>}
++ <div className="text-body text-break">
++ <Markdown text={chopString(item.content, 200)} style="plainText" />
++ </div>
++ {item.type === "comment" && <div className="text-muted text-break">{title}</div>}
+
- <div className="c-moderation-item__actions invisible pt-1" onClick={(e) => e.stopPropagation()}>
++ <div className="c-moderation-item__actions invisible" onClick={(e) => e.stopPropagation()}>
+ <HStack spacing={2}>
+ <Button
+ size="small"
+ variant="secondary"
+ onClick={() => (item.type === "post" ? handleApprovePost(item.id) : handleApproveComment(item.id))}
+ >
+ <Icon sprite={IconCheck} />
+ <span>
+ <Trans id="action.publish">Publish</Trans>
+ </span>
+ </Button>
+ <Button
+ size="small"
+ variant="secondary"
+ onClick={() => (item.type === "post" ? handleDeclinePost(item.id) : handleDeclineComment(item.id))}
+ >
+ <Icon sprite={IconX} />
+ <span>
+ <Trans id="action.delete">Delete</Trans>
+ </span>
+ </Button>
+ <Button
+ size="small"
+ variant="secondary"
+ onClick={() => (item.type === "post" ? handleApprovePostAndVerify(item.id) : handleApproveCommentAndVerify(item.id))}
+ >
+ <Icon sprite={IconShieldCheck} />
+ <span>
+ <Trans id="action.publish.verify">Publish & Trust</Trans>
+ </span>
+ </Button>
+ <Button
+ size="small"
+ variant="secondary"
+ onClick={() => (item.type === "post" ? handleDeclinePostAndBlock(item.id) : handleDeclineCommentAndBlock(item.id))}
+ >
+ <Icon sprite={IconBan} />
+ <span>
+ <Trans id="action.delete.block">Delete & Block</Trans>
+ </span>
+ </Button>
+ </HStack>
+ </div>
+ </VStack>
+ </HStack>
- <Moment date={item.createdAt} locale={fider.currentLocale} />
++ <div className="c-moderation-item__timestamp">
++ <Moment date={item.createdAt} locale={fider.currentLocale} />
++ </div>
+ </HStack>
+ </div>
+ </div>
+ )
+ }
+
+ const posts = state.items.filter((item) => item.type === "post")
+ const comments = state.items.filter((item) => item.type === "comment")
+
+ return (
+ <>
+ <Header />
+ <div id="p-admin-moderation" className="page container">
- <h1 className="text-large">
- <Trans id="moderation.title">Moderation Queue</Trans>
- </h1>
- <p className="text-body text-lg mt-3">
- <Trans id="moderation.subtitle">These ideas and comments are from people outside of your trusted users list, you decide if they get published.</Trans>
- </p>
++ <VStack spacing={2}>
++ <h1 className="text-display">
++ <Trans id="moderation.title">Moderation Queue</Trans>
++ </h1>
++ <p className="text-body">
++ <Trans id="moderation.subtitle">
++ These ideas and comments are from people outside of your trusted users list, you decide if they get published.
++ </Trans>
++ </p>
++ </VStack>
+
+ <div className="c-moderation-page">
+ {state.loading ? (
+ <Loader />
+ ) : state.items.length === 0 ? (
+ <div className="text-center p-8 rounded mt-4">
+ <p>
+ <Trans id="moderation.empty">All content has been moderated. You&apos;re all caught up!</Trans>
+ </p>
+ </div>
+ ) : (
- <div className="mt-4">
++ <>
+ {posts.length > 0 && (
+ <>
+ {renderDivider("New ideas", posts.length)}
- <div className="mb-2">
- <div className="flex flex-y">{posts.map(renderModerationItem)}</div>
- </div>
++ <div className="c-moderation-page__list">{posts.map(renderModerationItem)}</div>
+ </>
+ )}
+
+ {comments.length > 0 && (
+ <>
+ {renderDivider("New comments", comments.length)}
- <div className="mb-2">
- <div className="flex flex-y">{comments.map(renderModerationItem)}</div>
- </div>
++ <div className="c-moderation-page__list">{comments.map(renderModerationItem)}</div>
+ </>
+ )}
- </div>
++ </>
+ )}
+ </div>
+ </div>
+ </>
+ )
+}
+
+export default ContentModerationPage
diff --cc locale/ar/client.json
index 6cc8ea714,04cb6fb03..6c27c269e
--- a/locale/ar/client.json
+++ b/locale/ar/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "تعديل",
"action.markallasread": "تمييز الكل كمقروءة",
"action.ok": "حسناً",
+ "action.postcomment": "",
"action.postsfeed": "تغذية المنشورات",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "رد",
"action.save": "احفظ",
"action.signin": "تسجيل الدخول",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "يسعدنا سماع أفكارك.\n\nكيف يمكننا أن نكون أفضل؟ هذا هو المكان المناسب للتصويت والمناقشة ومشاركة الأفكار.",
"home.lonely.suggestion": "ننصح بإنشاء <0>٣ اقتراحات على الأقل</0> قبل مشاركة هذا الموقع. المحتوى المبدئي مهم لجذب جمهورك.",
"home.lonely.text": "لم يتم إنشاء منشورات بعد.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "ملك",
"home.postfilter.label.status": "حالة",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "عرض",
"home.postfilter.option.mostdiscussed": "الأكثر مناقشة",
"home.postfilter.option.mostwanted": "الأكثر طلبا",
"home.postfilter.option.myposts": "منشوراتي",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "الإشعارات",
"label.or": "أو",
"label.searchtags": "علامات البحث...",
- "label.selecttags": "حدد وسوم...",
"label.subscribe": "إشترِك",
"label.tags": "وسوم",
- "label.unfollow": "إلغاء المتابعة",
"label.unread": "غير مقروء",
"label.unsubscribe": "إلغاء الاشتراك",
+ "label.vote": "",
"label.voters": "المصوتون",
+ "label.votes": "",
"labels.notagsavailable": "لا توجد وسوم متاحة",
- "labels.notagsselected": "لم يتم تحديد أي علامات",
"legal.agreement": "لقد قرأت <0/> و<1/> وأوافق على ذلك.",
- "legal.notice": "من خلال تسجيل الدخول، أنت توافق على <2/><0/> و <1/>.",
+ "legal.notice": "من خلال تسجيل الدخول، أنت توافق على <0/><1/> و <2/>.",
"legal.privacypolicy": "سياسة الخصوصية",
"legal.termsofservice": "شروط الخدمة",
"linkmodal.insert": "إدراج الرابط",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "معرف تعليق غير صالح #{id}",
"showpost.commentinput.placeholder": "اترك تعليق",
"showpost.copylink.success": "تم نسخ الرابط إلى الحافظة",
- "showpost.discussionpanel.emptymessage": "لم يعلق أحد بعد.",
- "showpost.label.author": "نشرت بواسطة <0/> · <1/>",
"showpost.message.nodescription": "لا يوجد وصف.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "هذه العملية <0>لا يمكن</0> التراجع عنها.",
"showpost.moderationpanel.text.placeholder": "لماذا تقوم بحذف هذا المنشور؟ (اختياري)",
- "showpost.mostwanted.comments": "{count, plural, zero {}one {# تعليق} two {# تعليقات} few {# تعليقات} many {# تعليقات} other {# تعليقات}}",
- "showpost.mostwanted.votes": "{count, plural, one {# صوت} other {# أصوات}}",
"showpost.notificationspanel.message.subscribed": "أنت تتلقى إشعارات عن النشاط على هذا المنشور.",
"showpost.notificationspanel.message.unsubscribed": "لن تتلقى أي إشعار بشأن هذا المنشور.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} أصوات",
"showpost.postsearch.query.placeholder": "البحث في المنشور الأصلي...",
- "showpost.response.date": "تغيرت الحالة إلى {status} على {statusDate}",
"showpost.responseform.message.mergedvotes": "سيتم دمج التصويتات من هذا المنشور في المنشور الأصلية.",
"showpost.responseform.text.placeholder": "ما الذي يجري مع هذا المنشور؟ أخبر المستخدمين ما هي خططك...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} أكثر",
-- "showpost.votespanel.seedetails": "عرض التفاصيل",
"signin.code.edit": "يحرر",
- "signin.code.expired": "انتهت صلاحية هذا الرمز أو تم استخدامه مسبقًا. يُرجى طلب رمز جديد.",
"signin.code.getnew": "احصل على رمز جديد",
"signin.code.instruction": "الرجاء كتابة الرمز الذي أرسلناه للتو إلى <0>{email}</0>",
- "signin.code.invalid": "الرمز الذي أدخلته غير صحيح. يُرجى المحاولة مرة أخرى.",
"signin.code.placeholder": "اكتب الكود هنا",
"signin.code.sent": "لقد تم إرسال رمز جديد إلى بريدك الإلكتروني.",
- "signin.code.submit": "يُقدِّم",
"signin.email.placeholder": "البريد الإلكتروني",
"signin.message.email": "متابعة بالبريد الإلكتروني",
"signin.message.emaildisabled": "تم تعطيل مصادقة البريد الإلكتروني من قبل المسؤول. إذا كان لديك حساب مسؤول وتحتاج إلى تجاوز هذا التقييد، الرجاء <0>انقر هنا </0>.",
diff --cc locale/de/client.json
index 4ffc0b2d2,fd919b3a3..031823e3d
--- a/locale/de/client.json
+++ b/locale/de/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Bearbeiten",
"action.markallasread": "Alle als gelesen markieren",
"action.ok": "OK",
+ "action.postcomment": "",
"action.postsfeed": "Beiträge-Feed",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Antworten",
"action.save": "Sichern",
"action.signin": "Anmelden",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Wir würden gerne erfahren, worüber Du nachdenkst.\n\nWas können wir verbessern? Hier kannst Du abstimmen, diskutieren und neue Ideen vorschlagen.",
"home.lonely.suggestion": "Es wird empfohlen, dass du <0>mindestens 3</0> Vorschläge hier erstellst, bevor du diese Seite teilst. Der anfängliche Inhalt ist wichtig, um die Interaktion mit deiner Zielgruppe zu fördern.",
"home.lonely.text": "Es wurden noch keine Beiträge erstellt.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Meine Aktivität",
"home.postfilter.label.status": "Status",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Anzeigen",
"home.postfilter.option.mostdiscussed": "Am häufigsten diskutiert",
"home.postfilter.option.mostwanted": "Meist gefragt",
"home.postfilter.option.myposts": "Meine Beiträge",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Benachrichtigungen",
"label.or": "ODER",
"label.searchtags": "Tags suchen...",
- "label.selecttags": "Tags auswählen...",
"label.subscribe": "Abonnieren",
"label.tags": "Tags",
- "label.unfollow": "Entfolgen",
"label.unread": "Ungelesen",
"label.unsubscribe": "Abbestellen",
+ "label.vote": "",
"label.voters": "Wähler",
+ "label.votes": "",
"labels.notagsavailable": "Keine Tags verfügbar",
- "labels.notagsselected": "Keine Tags ausgewählt",
"legal.agreement": "Ich habe die <0/> und <1/> gelesen und akzeptiere sie.",
- "legal.notice": "Mit der Anmeldung stimmst du den <2/><0/> und <1/> zu.",
+ "legal.notice": "Mit der Anmeldung stimmst du den <0/><1/> und <2/> zu.",
"legal.privacypolicy": "Datenschutzerklärung",
"legal.termsofservice": "Nutzungsbedingungen",
"linkmodal.insert": "Link einfügen",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Ungültige Kommentar ID #{id}",
"showpost.commentinput.placeholder": "Kommentar hinzufügen",
"showpost.copylink.success": "Link in die Zwischenablage kopiert",
- "showpost.discussionpanel.emptymessage": "Niemand hat bisher kommentiert.",
- "showpost.label.author": "Gepostet von <0/> · <1/>",
"showpost.message.nodescription": "Keine Beschreibung angegeben.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Diese Aktion <0>kann nicht</0> rückgängig gemacht werden.",
"showpost.moderationpanel.text.placeholder": "Warum löschst du diesen Beitrag? (optional)",
- "showpost.mostwanted.comments": "{count, plural, one {# Kommentar} other {# Kommentare}}",
- "showpost.mostwanted.votes": "{count, plural, one {# Stimme} other {# Stimmen}}",
"showpost.notificationspanel.message.subscribed": "Du erhältst Benachrichtigungen über Aktivitäten auf diesem Beitrag.",
"showpost.notificationspanel.message.unsubscribed": "Du erhältst keine Benachrichtigungen über diesen Beitrag.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} Stimmen",
"showpost.postsearch.query.placeholder": "Originalbeitrag suchen...",
- "showpost.response.date": "Status geändert zu {status} am {statusDate}",
"showpost.responseform.message.mergedvotes": "Stimmen aus diesem Beitrag werden mit den Stimmen vom ursprünglichen Beitrag zusammengeführt.",
"showpost.responseform.text.placeholder": "Was passiert in diesem Beitrag? Lass deine Benutzer wissen, was deine Pläne sind...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} mehr",
-- "showpost.votespanel.seedetails": "Details anschauen",
"signin.code.edit": "Bearbeiten",
- "signin.code.expired": "Dieser Code ist abgelaufen oder wurde bereits verwendet. Bitte fordern Sie einen neuen an.",
"signin.code.getnew": "Neuen Code anfordern",
"signin.code.instruction": "Bitte geben Sie den soeben gesendeten Code an <0>{email}</0> ein.",
- "signin.code.invalid": "Der eingegebene Code ist ungültig. Bitte versuchen Sie es erneut.",
"signin.code.placeholder": "Geben Sie hier den Code ein.",
"signin.code.sent": "Ein neuer Code wurde an Ihre E-Mail-Adresse gesendet.",
- "signin.code.submit": "Einreichen",
"signin.email.placeholder": "E-Mail-Adresse",
"signin.message.email": "Mit E-Mail fortfahren",
"signin.message.emaildisabled": "Die E-Mail-Authentifizierung wurde von einem Administrator deaktiviert. Wenn du ein Administrator-Konto hast und diese Einschränkung umgehen musst, klicke bitte <0>hier</0>.",
diff --cc locale/el/client.json
index 3d8f2e6a7,284c535d9..bc8d3d402
--- a/locale/el/client.json
+++ b/locale/el/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Επεξεργασία",
"action.markallasread": "Σήμανση όλων ως αναγνωσμένων",
"action.ok": "ΟΚ",
+ "action.postcomment": "",
"action.postsfeed": "Ροή αναρτήσεων",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Απάντηση",
"action.save": "Αποθήκευση",
"action.signin": "Είσοδος",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Θα θέλαμε πολύ να ακούσουμε τι σκέφτεστε.\n\nΤι μπορούμε να κάνουμε καλύτερα; Αυτό είναι το μέρος για να ψηφίσετε, να συζητήσετε και να μοιραστείτε ιδέες.",
"home.lonely.suggestion": "Συνιστάται να δημιουργείσετε εδώ <0>τουλάχιστον 3</0> προτάσεις πριν από την κοινή χρήση αυτής της ιστοσελίδας. Το αρχικό περιεχόμενο είναι σημαντικό να αρχίσετε να προσελκύετε το κοινό σας.",
"home.lonely.text": "Δεν έχουν δημιουργηθεί αναρτήσεις ακόμα.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Ιδιος",
"home.postfilter.label.status": "Κατάσταση",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Προβολή",
"home.postfilter.option.mostdiscussed": "Πιο συζητημένα",
"home.postfilter.option.mostwanted": "Πιο ενδιαφέροντα",
"home.postfilter.option.myposts": "Οι αναρτήσεις μου",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Ειδοποιήσεις",
"label.or": "Ή",
"label.searchtags": "Αναζήτηση ετικετών...",
- "label.selecttags": "Επιλογή ετικετών...",
"label.subscribe": "Εγγραφείτε",
"label.tags": "Ετικέτες",
- "label.unfollow": "Κατάργηση παρακολούθησης",
"label.unread": "Αδιάβαστο",
"label.unsubscribe": "Απεγγραφή",
+ "label.vote": "",
"label.voters": "Ψηφοφόροι",
+ "label.votes": "",
"labels.notagsavailable": "Δεν υπάρχουν διαθέσιμες ετικέτες",
- "labels.notagsselected": "Δεν έχουν επιλεγεί ετικέτες",
"legal.agreement": "Έχω διαβάσει και συμφωνώ με το <0/> και <1/>.",
- "legal.notice": "Με την είσοδο, συμφωνείτε με το <2/><0/> και <1/>.",
+ "legal.notice": "Με την είσοδο, συμφωνείτε με το <0/><1/> και <2/>.",
"legal.privacypolicy": "Πολιτική Απορρήτου",
"legal.termsofservice": "Όροι χρήσης",
"linkmodal.insert": "Εισαγωγή συνδέσμου",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Μη έγκυρο αναγνωριστικό σχολίου #{id}",
"showpost.commentinput.placeholder": "Αφήστε ένα σχόλιο",
"showpost.copylink.success": "Ο σύνδεσμος αντιγράφηκε στο πρόχειρο",
- "showpost.discussionpanel.emptymessage": "Κανείς δεν έχει σχολιάσει ακόμα.",
- "showpost.label.author": "Δημοσιεύτηκε από <0/> · <1/>",
"showpost.message.nodescription": "Δεν υπάρχει περιγραφή.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Αυτή η λειτουργία <0>δεν μπορεί</0> να αναιρεθεί.",
"showpost.moderationpanel.text.placeholder": "Γιατί διαγράφετε αυτή την ανάρτηση; (προαιρετικό)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Λαμβάνετε ειδοποιήσεις σχετικά με δραστηριότητα σε αυτή τη δημοσίευση.",
"showpost.notificationspanel.message.unsubscribed": "Δεν θα λάβετε καμία ειδοποίηση σχετικά με αυτή τη δημοσίευση.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} Ψήφοι",
"showpost.postsearch.query.placeholder": "Αναζήτηση αρχικής ανάρτησης...",
- "showpost.response.date": "Η κατάσταση άλλαξε σε {status} στις {statusDate}",
"showpost.responseform.message.mergedvotes": "Οι ψήφοι από αυτό το post θα συγχωνευτούν στο αρχικό post.",
"showpost.responseform.text.placeholder": "Τι συμβαίνει με αυτή την ανάρτηση; Αφήστε τους χρήστες σας να γνωρίζουν ποια είναι τα σχέδιά σας...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} περισσότερα",
-- "showpost.votespanel.seedetails": "δείτε λεπτομέρειες",
"signin.code.edit": "Εκδίδω",
- "signin.code.expired": "Αυτός ο κωδικός έχει λήξει ή έχει ήδη χρησιμοποιηθεί. Παρακαλούμε ζητήστε έναν νέο.",
"signin.code.getnew": "Λήψη νέου κωδικού",
"signin.code.instruction": "Παρακαλώ πληκτρολογήστε τον κωδικό που μόλις στείλαμε στη διεύθυνση <0>{email}</0>",
- "signin.code.invalid": "Ο κωδικός που εισαγάγατε δεν είναι έγκυρος. Δοκιμάστε ξανά.",
"signin.code.placeholder": "Πληκτρολογήστε τον κωδικό εδώ",
"signin.code.sent": "Ένας νέος κωδικός έχει σταλεί στο email σας.",
- "signin.code.submit": "Υποτάσσομαι",
"signin.email.placeholder": "Διεύθυνση ηλεκτρονικού ταχυδρομείου",
"signin.message.email": "Συνέχεια με email",
"signin.message.emaildisabled": "Ο έλεγχος ταυτότητας email έχει απενεργοποιηθεί από τον διαχειριστή. Εάν έχετε λογαριασμό διαχειριστή και πρέπει να παρακάμψετε αυτόν τον περιορισμό, παρακαλώ <0>κάντε κλικ εδώ</0>.",
diff --cc locale/en/client.json
index 189e14aab,abcfaede4..ced861b80
--- a/locale/en/client.json
+++ b/locale/en/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Edit",
"action.markallasread": "Mark All as Read",
"action.ok": "OK",
- "action.postcomment": "Post Comment",
++ "action.postcomment": "Post",
"action.postsfeed": "Posts Feed",
+ "action.publish": "Publish",
+ "action.publish.verify": "Publish & Trust",
"action.respond": "Respond",
"action.save": "Save",
"action.signin": "Sign in",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "We'd love to hear what you're thinking about.\n\nWhat can we do better? This is the place for you to vote, discuss and share ideas.",
"home.lonely.suggestion": "It's recommended that you create <0>at least 3</0> suggestions here before sharing this site. The initial content is important to start engaging your audience.",
"home.lonely.text": "No posts have been created yet.",
- "home.postfilter.label.myactivity": "Own",
+ "home.postfilter.label.moderation": "Moderation",
+ "home.postfilter.label.myactivity": "My activity",
"home.postfilter.label.status": "Status",
- "home.postfilter.moderation.approved": "Approved",
- "home.postfilter.moderation.pending": "Pending",
- "home.postfilter.label.view": "View",
"home.postfilter.option.mostdiscussed": "Most Discussed",
"home.postfilter.option.mostwanted": "Most Wanted",
"home.postfilter.option.myposts": "My Posts",
@@@ -79,14 -83,21 +78,16 @@@
"label.notifications": "Notifications",
"label.or": "OR",
"label.searchtags": "Search tags...",
- "label.selecttags": "Select tags...",
"label.subscribe": "Subscribe",
"label.tags": "Tags",
- "label.unfollow": "Unfollow",
"label.unread": "Unread",
"label.unsubscribe": "Unsubscribe",
+ "label.vote": "Vote",
"label.voters": "Voters",
+ "label.votes": "Votes",
"labels.notagsavailable": "No tags available",
- "labels.notagsselected": "No tags selected",
"legal.agreement": "I have read and agree to the <0/> and <1/>.",
- "legal.notice": "By signing in, you agree to the <2/><0/> and <1/>.",
+ "legal.notice": "By signing in, you agree to the <0/><1/> and <2/>.",
"legal.privacypolicy": "Privacy Policy",
"legal.termsofservice": "Terms of Service",
"linkmodal.insert": "Insert Link",
@@@ -185,37 -189,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Unknown comment ID #{id}",
"showpost.commentinput.placeholder": "Leave a comment",
"showpost.copylink.success": "Link copied to clipboard",
- "showpost.discussionpanel.emptymessage": "No one has commented yet.",
- "showpost.label.author": "Posted by <0/> · <1/>",
"showpost.message.nodescription": "No description provided.",
+ "showpost.moderation.admin.description": "This idea needs your approval before being published",
+ "showpost.moderation.admin.title": "Moderation",
+ "showpost.moderation.approved": "Post approved successfully",
+ "showpost.moderation.approveerror": "Failed to approve post",
+ "showpost.moderation.awaiting": "Awaiting moderation.",
+ "showpost.moderation.comment.admin.description": "This comment needs your approval before being published",
+ "showpost.moderation.comment.approved": "Comment approved successfully",
+ "showpost.moderation.comment.approveerror": "Failed to approve comment",
+ "showpost.moderation.comment.awaiting": "Awaiting moderation.",
+ "showpost.moderation.comment.declined": "Comment declined successfully",
+ "showpost.moderation.comment.declineerror": "Failed to decline comment",
+ "showpost.moderation.commentsuccess": "Your comment has been submitted and is awaiting moderation 📝",
+ "showpost.moderation.declined": "Post declined successfully",
+ "showpost.moderation.declineerror": "Failed to decline post",
+ "showpost.moderation.postsuccess": "Your idea has been submitted and is awaiting moderation 📝",
"showpost.moderationpanel.text.help": "This operation <0>cannot</0> be undone.",
"showpost.moderationpanel.text.placeholder": "Why are you deleting this post? (optional)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "You’re receiving notifications about activity on this post.",
"showpost.notificationspanel.message.unsubscribed": "You'll not receive any notification about this post.",
+ "showpost.postedby": "Posted by",
"showpost.postsearch.numofvotes": "{0} votes",
"showpost.postsearch.query.placeholder": "Search original post...",
- "showpost.response.date": "Status changed to {status} on {statusDate}",
"showpost.responseform.message.mergedvotes": "Votes from this post will be merged into original post.",
"showpost.responseform.text.placeholder": "What's going on with this post? Let your users know what are your plans...",
- "showpost.stayupdated.description": "Get notified about updates to this idea",
- "showpost.stayupdated.title": "Stay Updated",
-- "showpost.votespanel.more": "+{extraVotesCount} more",
-- "showpost.votespanel.seedetails": "see details",
"signin.code.edit": "Edit",
- "signin.code.expired": "This code has expired or already been used. Please request a new one.",
"signin.code.getnew": "Get a new code",
"signin.code.instruction": "Please type in the code we just sent to <0>{email}</0>",
- "signin.code.invalid": "The code you entered is invalid. Please try again.",
"signin.code.placeholder": "Type in the code here",
"signin.code.sent": "A new code has been sent to your email.",
- "signin.code.submit": "Submit",
"signin.email.placeholder": "Email address",
"signin.message.email": "Continue with Email",
"signin.message.emaildisabled": "Email authentication has been disabled by an administrator. If you have an administrator account and need to bypass this restriction, please <0>click here</0>.",
diff --cc locale/es-ES/client.json
index 912f99b12,aca4643b1..2eec057c5
--- a/locale/es-ES/client.json
+++ b/locale/es-ES/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Editar",
"action.markallasread": "Marcar Todo como Leído",
"action.ok": "Aceptar",
+ "action.postcomment": "",
"action.postsfeed": "Feed de publicaciones",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Responder",
"action.save": "Guardar",
"action.signin": "Iniciar sesión",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Nos encantaría escuchar lo que estás pensando.\n\n¿Qué podemos hacer mejor? Este es el lugar para que votes, discutas y compartas ideas.",
"home.lonely.suggestion": "Se recomienda que cree <0>al menos 3</0> sugerencias aquí antes de compartir este sitio. El contenido inicial es importante para empezar a atraer a su audiencia.",
"home.lonely.text": "No se han creado publicaciones todavía.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Propio",
"home.postfilter.label.status": "Estado",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Vista",
"home.postfilter.option.mostdiscussed": "Más Discutidos",
"home.postfilter.option.mostwanted": "Más Deseados",
"home.postfilter.option.myposts": "Mis publicaciones",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Notificaciones",
"label.or": "O",
"label.searchtags": "Buscar etiquetas...",
- "label.selecttags": "Seleccionar etiquetas...",
"label.subscribe": "Suscribete",
"label.tags": "Etiquetas",
- "label.unfollow": "Dejar de seguir",
"label.unread": "Sin leer",
"label.unsubscribe": "Cancelar la suscripción",
+ "label.vote": "",
"label.voters": "Votantes",
+ "label.votes": "",
"labels.notagsavailable": "No hay etiquetas disponibles",
- "labels.notagsselected": "No hay etiquetas seleccionadas",
"legal.agreement": "He leído y acepto los <0/> y <1/>.",
- "legal.notice": "Al iniciar sesión, aceptas los <2/><0/> y <1/>.",
+ "legal.notice": "Al iniciar sesión, aceptas los <0/><1/> y <2/>.",
"legal.privacypolicy": "Política de Privacidad",
"legal.termsofservice": "Términos del servicio",
"linkmodal.insert": "Insertar un enlace",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "ID de comentario no válido #{id}",
"showpost.commentinput.placeholder": "Publica un comentario",
"showpost.copylink.success": "Enlace copiado al portapapeles",
- "showpost.discussionpanel.emptymessage": "Nadie ha comentado todavía.",
- "showpost.label.author": "Publicado por <0/> · <1/>",
"showpost.message.nodescription": "No se proporcionó ninguna descripción.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Esta operación <0>no se puede</0> deshacer.",
"showpost.moderationpanel.text.placeholder": "¿Por qué estás eliminando esta publicación? (opcional)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Has recibido notificaciones sobre la actividad en este mensaje.",
"showpost.notificationspanel.message.unsubscribed": "No recibirás ninguna notificación sobre este evento.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} votos",
"showpost.postsearch.query.placeholder": "Buscar publicación original...",
- "showpost.response.date": "El estado cambió a {status} el {statusDate}",
"showpost.responseform.message.mergedvotes": "Los votos de esta publicación se fusionarán en la publicación original.",
"showpost.responseform.text.placeholder": "¿Qué está pasando con esta publicación? Dile a tus usuarios cuáles son tus planes...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} más",
-- "showpost.votespanel.seedetails": "ver detalles",
"signin.code.edit": "Editar",
- "signin.code.expired": "Este código ha caducado o ya se ha utilizado. Por favor, solicite uno nuevo.",
"signin.code.getnew": "Obtén un nuevo código",
"signin.code.instruction": "Por favor, introduzca el código que le acabamos de enviar a <0>{email}</0>",
- "signin.code.invalid": "El código que has introducido no es válido. Por favor, inténtalo de nuevo.",
"signin.code.placeholder": "Escriba el código aquí.",
"signin.code.sent": "Se ha enviado un nuevo código a su correo electrónico.",
- "signin.code.submit": "Entregar",
"signin.email.placeholder": "Dirección de correo electrónico",
"signin.message.email": "Continuar con el correo electrónico",
"signin.message.emaildisabled": "La autenticación de correo electrónico ha sido deshabilitada por un administrador. Si tiene una cuenta de administrador y necesita eludir esta restricción, por favor <0>haga clic aquí</0>.",
diff --cc locale/fa/client.json
index a70430524,5f1f31228..19474176b
--- a/locale/fa/client.json
+++ b/locale/fa/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "ویرایش",
"action.markallasread": "علامت‌گذاری همه به‌عنوان خوانده‌شده",
"action.ok": "باشه",
+ "action.postcomment": "",
"action.postsfeed": "فید پست‌ها",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "پاسخ",
"action.save": "ذخیره",
"action.signin": "ورود",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "مایلیم بدانیم به چه می‌اندیشید.\n\nچه کاری می‌توانیم بهتر انجام دهیم؟ اینجا جایی است برای رأی دادن، بحث و به‌اشتراک‌گذاری ایده‌ها.",
"home.lonely.suggestion": "توصیه می‌شود قبل از به‌اشتراک‌گذاری این سایت، <0>حداقل ۳</0> پیشنهاد ایجاد کنید. محتوای اولیه برای جذب مخاطبان شما مهم است.",
"home.lonely.text": "هنوز هیچ پستی ایجاد نشده است.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "مال خود",
"home.postfilter.label.status": "وضعیت",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "نمایش",
"home.postfilter.option.mostdiscussed": "بیشترین بحث",
"home.postfilter.option.mostwanted": "بیشترین خواسته",
"home.postfilter.option.myposts": "پست‌های من",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "اعلان‌ها",
"label.or": "یا",
"label.searchtags": "جستجوی برچسب‌ها...",
- "label.selecttags": "برچسب‌ها را انتخاب کنید...",
"label.subscribe": "اشتراک",
"label.tags": "برچسب‌ها",
- "label.unfollow": "لغو دنبال‌کردن",
"label.unread": "خوانده‌نشده",
"label.unsubscribe": "لغو اشتراک",
+ "label.vote": "",
"label.voters": "رأی‌دهندگان",
+ "label.votes": "",
"labels.notagsavailable": "برچسبی در دسترس نیست",
- "labels.notagsselected": "برچسبی انتخاب نشده است",
"legal.agreement": "من <0/> و <1/> را خوانده‌ام و قبول دارم.",
- "legal.notice": "با ورود، شما با <2/><0/> و <1/> موافقید.",
+ "legal.notice": "با ورود، شما با <0/><1/> و <2/> موافقید.",
"legal.privacypolicy": "سیاست حفظ حریم خصوصی",
"legal.termsofservice": "شرایط خدمات",
"linkmodal.insert": "درج لینک",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "شناسهٔ نظر نامعتبر #{id}",
"showpost.commentinput.placeholder": "یک نظر بگذارید",
"showpost.copylink.success": "لینک کپی شد",
- "showpost.discussionpanel.emptymessage": "هنوز نظری ثبت نشده است.",
- "showpost.label.author": "ارسال‌شده توسط <0/> · <1/>",
"showpost.message.nodescription": "توضیحی ارائه نشده است.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "این عملیات <0>قابل بازگشت نیست</0>.",
"showpost.moderationpanel.text.placeholder": "چرا این پست را حذف می‌کنید؟ (اختیاری)",
- "showpost.mostwanted.comments": "{count, plural, one {# دیدگاه} other {# دیدگاه}}",
- "showpost.mostwanted.votes": "{count, plural, one {# رأی} other {# رأی}}",
"showpost.notificationspanel.message.subscribed": "شما اعلان‌های این پست را دریافت می‌کنید.",
"showpost.notificationspanel.message.unsubscribed": "شما اعلانی برای این پست دریافت نخواهید کرد.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} رأی",
"showpost.postsearch.query.placeholder": "جستجوی پست اصلی...",
- "showpost.response.date": "وضعیت در {statusDate} به {status} تغییر کرد",
"showpost.responseform.message.mergedvotes": "رأی‌های این پست در پست اصلی ادغام می‌شود.",
"showpost.responseform.text.placeholder": "برنامهٔ خود را دربارهٔ این پست با کاربران در میان بگذارید...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} بیشتر",
-- "showpost.votespanel.seedetails": "مشاهدهٔ جزئیات",
"signin.code.edit": "ویرایش",
- "signin.code.expired": "این کد منقضی شده یا قبلاً استفاده شده است. لطفاً کد جدیدی درخواست کنید.",
"signin.code.getnew": "دریافت کد جدید",
"signin.code.instruction": "لطفا کدی که به <0>{email}</0> ارسال کردیم را وارد کنید.",
- "signin.code.invalid": "کدی که وارد کردید نامعتبر است. لطفاً دوباره امتحان کنید.",
"signin.code.placeholder": "کد را اینجا تایپ کنید",
"signin.code.sent": "کد جدید به ایمیل شما ارسال شد.",
- "signin.code.submit": "ارسال",
"signin.email.placeholder": "آدرس ایمیل",
"signin.message.email": "ادامه با ایمیل",
"signin.message.emaildisabled": "ورود با ایمیل توسط مدیر غیرفعال شده است. اگر مدیر هستید و نیاز به دسترسی دارید <0>اینجا کلیک کنید</0>.",
diff --cc locale/fr/client.json
index b46d42b5f,a2ee11301..d4614ecfc
--- a/locale/fr/client.json
+++ b/locale/fr/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Modifier",
"action.markallasread": "Tout marquer comme lu",
"action.ok": "D'ACCORD",
+ "action.postcomment": "",
"action.postsfeed": "Flux de publications",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Répondre",
"action.save": "Enregistrer",
"action.signin": "Se connecter",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Nous aimerions savoir ce que vous pensez.\n\nQue pouvons-nous faire de mieux ? C'est ici que vous pouvez voter, discuter et partager vos idées.",
"home.lonely.suggestion": "Il est recommandé de créer <0>au moins 3</0> suggestions avant de partager ce site. Le contenu initial est important pour commencer à engager votre public.",
"home.lonely.text": "Aucun message n'a encore été créé.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Propre",
"home.postfilter.label.status": "Statut",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Afficher",
"home.postfilter.option.mostdiscussed": "Les plus discutés",
"home.postfilter.option.mostwanted": "Les plus votées",
"home.postfilter.option.myposts": "Mes publications",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Notifications",
"label.or": "OU",
"label.searchtags": "Rechercher des balises...",
- "label.selecttags": "Séléctionner des étiquettes...",
"label.subscribe": "S'abonner",
"label.tags": "Mots clés",
- "label.unfollow": "Ne plus suivre",
"label.unread": "Non lu",
"label.unsubscribe": "Se désabonner",
+ "label.vote": "",
"label.voters": "Votants",
+ "label.votes": "",
"labels.notagsavailable": "Aucune étiquette disponible",
- "labels.notagsselected": "Aucune balise sélectionnée",
"legal.agreement": "J'ai lu et j'accepte les <0/> et <1/>.",
- "legal.notice": "En vous connectant, vous acceptez les <2/><0/> et <1/>.",
+ "legal.notice": "En vous connectant, vous acceptez les <0/><1/> et <2/>.",
"legal.privacypolicy": "Politique de confidentialité",
"legal.termsofservice": "Conditions générales d’utilisation",
"linkmodal.insert": "Insérer un lien",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "ID de commentaire #{id} invalide",
"showpost.commentinput.placeholder": "Rédiger un commentaire",
"showpost.copylink.success": "Lien copié dans le presse-papier",
- "showpost.discussionpanel.emptymessage": "Personne n'a encore commenté.",
- "showpost.label.author": "Posté par <0/> · <1/>",
"showpost.message.nodescription": "Aucune description fournie.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Cette opération <0>ne peut pas</0> être annulée.",
"showpost.moderationpanel.text.placeholder": "Pourquoi supprimez-vous ce message ? (optionnel)",
- "showpost.mostwanted.comments": "{count, plural, one {# commentaire} other {# commentaires}}",
- "showpost.mostwanted.votes": "{count, plural, one {# vote} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Vous recevrez des notifications sur l'activité de ce message.",
"showpost.notificationspanel.message.unsubscribed": "Vous ne recevrez aucune notification à propos de ce message.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} votes",
"showpost.postsearch.query.placeholder": "Rechercher le message original...",
- "showpost.response.date": "Le statut a été changé en {status} le {statusDate}",
"showpost.responseform.message.mergedvotes": "Les votes de ce message seront fusionnés dans le message original.",
"showpost.responseform.text.placeholder": "Que se passe-t-il avec ce message ? Faites savoir à vos utilisateurs quels sont vos plans...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} de plus",
-- "showpost.votespanel.seedetails": "voir les détails",
"signin.code.edit": "Modifier",
- "signin.code.expired": "Ce code a expiré ou a déjà été utilisé. Veuillez en demander un nouveau.",
"signin.code.getnew": "Obtenez un nouveau code",
"signin.code.instruction": "Veuillez saisir le code que nous venons d'envoyer à <0>{email}</0>",
- "signin.code.invalid": "Le code que vous avez saisi est invalide. Veuillez réessayer.",
"signin.code.placeholder": "Saisissez le code ici",
"signin.code.sent": "Un nouveau code a été envoyé à votre adresse e-mail.",
- "signin.code.submit": "Soumettre",
"signin.email.placeholder": "Adresse email",
"signin.message.email": "Continuer avec une addresse email",
"signin.message.emaildisabled": "L'authentification par e-mail a été désactivée par un administrateur. Si vous avez un compte administrateur, <0>cliquez ici</0> pour vous connecter.",
diff --cc locale/it/client.json
index 1e27af595,5c027ce80..91961c17f
--- a/locale/it/client.json
+++ b/locale/it/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Modifica",
"action.markallasread": "Segna tutto come letto",
"action.ok": "OK",
+ "action.postcomment": "",
"action.postsfeed": "Feed dei post",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Rispondi",
"action.save": "Salva",
"action.signin": "Accedi",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Ci piacerebbe sentire quello che stai pensando.\n\nChe cosa possiamo fare meglio? Questo è il posto per voi per votare, discutere e condividere idee.",
"home.lonely.suggestion": "Si consiglia di creare <0>almeno 3</0> suggerimenti qui prima di condividere questo sito. Il contenuto iniziale è importante per iniziare ad coinvolgere il pubblico.",
"home.lonely.text": "Non sono stati inviati messaggi.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Possedere",
"home.postfilter.label.status": "Stato",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Visualizza",
"home.postfilter.option.mostdiscussed": "Più discussi",
"home.postfilter.option.mostwanted": "I più votati",
"home.postfilter.option.myposts": "I miei post",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Notifiche",
"label.or": "OPPURE",
"label.searchtags": "Cerca tag...",
- "label.selecttags": "Seleziona i tag...",
"label.subscribe": "Abbonati",
"label.tags": "Etichette",
- "label.unfollow": "Non seguire più",
"label.unread": "Non letto",
"label.unsubscribe": "Disiscriversi",
+ "label.vote": "",
"label.voters": "Votanti",
+ "label.votes": "",
"labels.notagsavailable": "Nessun tag disponibile",
- "labels.notagsselected": "Nessun tag selezionato",
"legal.agreement": "Ho letto e accetto le <0/> e <1/>.",
- "legal.notice": "Accedendo, accetti i <2/><0/> e <1/>.",
+ "legal.notice": "Accedendo, accetti i <0/><1/> e <2/>.",
"legal.privacypolicy": "Informativa sulla privacy",
"legal.termsofservice": "Termini di servizio",
"linkmodal.insert": "Inserisci collegamento",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "ID commento non valido #{id}",
"showpost.commentinput.placeholder": "Lascia un commento",
"showpost.copylink.success": "Collegamento copiato negli appunti",
- "showpost.discussionpanel.emptymessage": "Nessuno ha ancora commentato.",
- "showpost.label.author": "Scritto da <0/>·<1/>",
"showpost.message.nodescription": "Nessuna descrizione fornita.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Questa operano <0>non</0> può essere cancellata.",
"showpost.moderationpanel.text.placeholder": "Stai eliminando questo post? (Opzione)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Stai ricevendo notifiche sull'attività di questo post.",
"showpost.notificationspanel.message.unsubscribed": "Non riceverai alcuna notifica su questo post.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} voti",
"showpost.postsearch.query.placeholder": "Cerca post originale...",
- "showpost.response.date": "Stato modificato in {status} il {statusDate}",
"showpost.responseform.message.mergedvotes": "I voti di questo post saranno uniti al post originale.",
"showpost.responseform.text.placeholder": "Cosa succede con questo post? Fate sapere ai vostri utenti quali sono i vostri piani...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} di più",
-- "showpost.votespanel.seedetails": "vedi dettagli",
"signin.code.edit": "Modificare",
- "signin.code.expired": "Questo codice è scaduto o è già stato utilizzato. Richiedine uno nuovo.",
"signin.code.getnew": "Ottieni un nuovo codice",
"signin.code.instruction": "Inserisci il codice che abbiamo appena inviato a <0>{email}</0>",
- "signin.code.invalid": "Il codice inserito non è valido. Riprova.",
"signin.code.placeholder": "Inserisci il codice qui",
"signin.code.sent": "Un nuovo codice è stato inviato alla tua email.",
- "signin.code.submit": "Invia",
"signin.email.placeholder": "Indirizzo e-mail",
"signin.message.email": "Continua con l'email",
"signin.message.emaildisabled": "L'autenticazione email è stata disabilitata da un amministratore. Se hai un account amministratore e hai bisogno di bypassare questa restrizione, per favore <0>clicca qui</0>.",
diff --cc locale/ja/client.json
index 648713ce2,588850979..d82a4171d
--- a/locale/ja/client.json
+++ b/locale/ja/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "編集",
"action.markallasread": "すべて既読にする",
"action.ok": "わかりました",
+ "action.postcomment": "",
"action.postsfeed": "投稿フィード",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "回答",
"action.save": "保存",
"action.signin": "ログイン",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "皆さんが考えていることをお聞きかせください。\n\nどう改善できますでしょうか? ここでは、あなたが投票、議論、アイデアを共有する場所です。",
"home.lonely.suggestion": "このサイトを共有する前に、<0>少なくとも3</0>の提案をここで作成することをお勧めします。最初のコンテンツは、ユーザーを引き付けるために重要です。",
"home.lonely.text": "投稿がまだ作成されていません。",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "自分の",
"home.postfilter.label.status": "状態",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "表示",
"home.postfilter.option.mostdiscussed": "最も議論されたもの",
"home.postfilter.option.mostwanted": "最も人気のあるもの",
"home.postfilter.option.myposts": "私の投稿",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "通知",
"label.or": "または",
"label.searchtags": "タグを検索...",
- "label.selecttags": "タグを選択...",
"label.subscribe": "購読する",
"label.tags": "タグ",
- "label.unfollow": "フォロー解除",
"label.unread": "未読",
"label.unsubscribe": "購読の解除",
+ "label.vote": "",
"label.voters": "投票者",
+ "label.votes": "",
"labels.notagsavailable": "利用可能なタグはありません",
- "labels.notagsselected": "タグが選択されていません",
"legal.agreement": "私は<0/>と<1/>を読み、同意しました。",
- "legal.notice": "サインインすると、<2/><0/> および <1/> に同意したことになります。",
+ "legal.notice": "サインインすると、<0/><1/> および <2/> に同意したことになります。",
"legal.privacypolicy": "プライバシーポリシー",
"legal.termsofservice": "サービス利用規約",
"linkmodal.insert": "リンクを挿入",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "無効なコメントID #{id}",
"showpost.commentinput.placeholder": "コメントを書く",
"showpost.copylink.success": "リンクをクリップボードにコピーしました",
- "showpost.discussionpanel.emptymessage": "コメントがありません。",
- "showpost.label.author": "<0/> · <1/>による投稿",
"showpost.message.nodescription": "詳細がありません。",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "この操作は元に戻せません<0></0>。",
"showpost.moderationpanel.text.placeholder": "なぜこの投稿を削除するのですか? (任意)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "この投稿のアクティビティに関する通知を受け取ります。",
"showpost.notificationspanel.message.unsubscribed": "この投稿についての通知は届きません。",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "投票数:{0} ",
"showpost.postsearch.query.placeholder": "オリジナルの投稿を検索...",
- "showpost.response.date": "{status} のステータスが {statusDate}に変更されました",
"showpost.responseform.message.mergedvotes": "この投稿からの投票は元の投稿にマージされます。",
"showpost.responseform.text.placeholder": "この記事はどうなっていますか? あなたのプランをユーザーに知らせてください...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} 以上",
-- "showpost.votespanel.seedetails": "詳細を表示",
"signin.code.edit": "編集",
- "signin.code.expired": "このコードは期限切れか、既に使用されています。新しいコードをリクエストしてください。",
"signin.code.getnew": "新しいコードを取得する",
"signin.code.instruction": "<0>{email}</0> に送信したコードを入力してください。",
- "signin.code.invalid": "入力したコードは無効です。もう一度お試しください。",
"signin.code.placeholder": "ここにコードを入力してください",
"signin.code.sent": "新しいコードがあなたのメールに送信されました。",
- "signin.code.submit": "提出する",
"signin.email.placeholder": "電子メールアドレス",
"signin.message.email": "メールで続行",
"signin.message.emaildisabled": "メール認証は管理者によって無効にされています。管理者アカウントを持っていて、この制限を回避する必要がある場合は、<0>ここをクリック</0>してください。",
diff --cc locale/nl/client.json
index 51999a2bf,88f552ce9..8f85da765
--- a/locale/nl/client.json
+++ b/locale/nl/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Bewerken",
"action.markallasread": "Markeer alles als gelezen",
"action.ok": "OK",
+ "action.postcomment": "",
"action.postsfeed": "Berichtenfeed",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Reageren",
"action.save": "Opslaan",
"action.signin": "Inloggen",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "We horen graag waar je aan denkt.\n\nWat kunnen we beter doen? Dit is de plek waar je op ideeën kunt stemmen en reageren, en ook je eigen ideeën kunt delen.",
"home.lonely.suggestion": "Het is aanbevolen om <0>tenminste 3 ideeën</0> aan te maken voor het delen van de site. De initiële inhoud is belangrijk om jouw publiek te motiveren om deel te nemen.",
"home.lonely.text": "Er zijn nog geen berichten aangemaakt.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Eigen",
"home.postfilter.label.status": "",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Bekijk",
"home.postfilter.option.mostdiscussed": "Meest besproken",
"home.postfilter.option.mostwanted": "Meeste stemmen",
"home.postfilter.option.myposts": "Mijn berichten",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Meldingen",
"label.or": "OF",
"label.searchtags": "Zoek tags...",
- "label.selecttags": "Tags selecteren...",
"label.subscribe": "Abonneren",
"label.tags": "Labels",
- "label.unfollow": "Ontvolgen",
"label.unread": "Ongelezen",
"label.unsubscribe": "Uitschrijven",
+ "label.vote": "",
"label.voters": "Stemmers",
+ "label.votes": "",
"labels.notagsavailable": "Geen tags beschikbaar",
- "labels.notagsselected": "Geen tags geselecteerd",
"legal.agreement": "Ik heb de <0/> en <1/> gelezen en ga hiermee akkoord.",
- "legal.notice": "Door in te loggen, ga je akkoord met de <2/><0/> en <1/>.",
+ "legal.notice": "Door in te loggen, ga je akkoord met de <0/><1/> en <2/>.",
"legal.privacypolicy": "Privacybeleid",
"legal.termsofservice": "Algemene voorwaarden",
"linkmodal.insert": "Link invoegen",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Ongeldige opmerking-ID #{id}",
"showpost.commentinput.placeholder": "Laat een reactie achter",
"showpost.copylink.success": "Link gekopieerd naar klembord",
- "showpost.discussionpanel.emptymessage": "Nog niemand heeft gereageerd.",
- "showpost.label.author": "Geplaatst door <0/> · <1/>",
"showpost.message.nodescription": "Geen omschrijving opgegeven.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Deze bewerking kan <0>niet</0> ongedaan gemaakt worden.",
"showpost.moderationpanel.text.placeholder": "Waarom verwijder je dit bericht? (optioneel)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Je ontvangt meldingen over activiteiten op dit bericht.",
"showpost.notificationspanel.message.unsubscribed": "Je ontvangt geen meldingen over dit bericht.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} stemmen",
"showpost.postsearch.query.placeholder": "Zoek origineel bericht...",
- "showpost.response.date": "Status gewijzigd naar {status} op {statusDate}",
"showpost.responseform.message.mergedvotes": "Stemmen van dit bericht zullen worden samengevoegd met het originele bericht.",
"showpost.responseform.text.placeholder": "Wat gebeurt er met dit bericht? Laat je gebruikers weten wat je plannen zijn...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} meer",
-- "showpost.votespanel.seedetails": "details bekijken",
"signin.code.edit": "Bewerking",
- "signin.code.expired": "Deze code is verlopen of al gebruikt. Vraag een nieuwe aan.",
"signin.code.getnew": "Ontvang een nieuwe code",
"signin.code.instruction": "Typ de code in die we zojuist naar <0>{email}</0> hebben gestuurd",
- "signin.code.invalid": "De ingevoerde code is ongeldig. Probeer het opnieuw.",
"signin.code.placeholder": "Typ hier de code in",
"signin.code.sent": "Er is een nieuwe code naar uw e-mailadres verzonden.",
- "signin.code.submit": "Indienen",
"signin.email.placeholder": "E-mailadres",
"signin.message.email": "Doorgaan met e-mail",
"signin.message.emaildisabled": "Inloggen met e-mail is uitgeschakeld door een beheerder. Als u een beheerder account heeft en deze beperking moet omzeilen, <0>klik dan hier</0>.",
diff --cc locale/pl/client.json
index 0126c2729,58f62cc08..be3646e4c
--- a/locale/pl/client.json
+++ b/locale/pl/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Edytuj",
"action.markallasread": "Oznacz wszystkie jako przeczytane",
"action.ok": "OK",
+ "action.postcomment": "",
"action.postsfeed": "Kanał postów",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Odpowiedz",
"action.save": "Zapisz",
"action.signin": "Zaloguj się",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Chcemy się dowiedzieć o czym myślisz.\n\nCo możemy poprawić? To jest miejsce, w którym możesz głosować, dyskutować i dzielić się pomysłami.",
"home.lonely.suggestion": "Zaleca się stworzenie tutaj <0>co najmniej 3</0> sugestii przed udostępnieniem tej witryny. Początkowa zawartość jest ważna do zaangażowania swoich odbiorców.",
"home.lonely.text": "Nie stworzono jeszcze żadnych postów.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Własny",
"home.postfilter.label.status": "",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Widok",
"home.postfilter.option.mostdiscussed": "Najczęściej dyskutowane",
"home.postfilter.option.mostwanted": "Najbardziej Pożądane",
"home.postfilter.option.myposts": "Moje posty",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Powiadomienia",
"label.or": "LUB",
"label.searchtags": "Szukaj tagów...",
- "label.selecttags": "Wybierz tagi...",
"label.subscribe": "Subskrybuj",
"label.tags": "Tagi",
- "label.unfollow": "Przestań obserwować",
"label.unread": "Nieprzeczytane",
"label.unsubscribe": "Zrezygnuj z subskrypcji",
+ "label.vote": "",
"label.voters": "Głosujący",
+ "label.votes": "",
"labels.notagsavailable": "Brak dostępnych tagów",
- "labels.notagsselected": "Nie wybrano tagów",
"legal.agreement": "Przeczytałem i zgadzam się z <0/> i <1/>.",
- "legal.notice": "Logując się, akceptujesz <2/><0/> i <1/>.",
+ "legal.notice": "Logując się, akceptujesz <0/><1/> i <2/>.",
"legal.privacypolicy": "Polityka Prywatności",
"legal.termsofservice": "Warunki Świadczenia Usług",
"linkmodal.insert": "Wstaw link",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Nieprawidłowy identyfikator komentarza #{id}",
"showpost.commentinput.placeholder": "Skomentuj",
"showpost.copylink.success": "Link skopiowany do schowka",
- "showpost.discussionpanel.emptymessage": "Wygląda na to, że nikt jeszcze nie skomentował.",
- "showpost.label.author": "Wysłane przez <0/> · <1/>",
"showpost.message.nodescription": "Brak opisu.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Ta akcja <0>nie może</0> zostać wykonana.",
"showpost.moderationpanel.text.placeholder": "Dlaczego usuwasz ten wpis? (opcjonalne)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Otrzymujesz powiadomienia o aktywności tego posta.",
"showpost.notificationspanel.message.unsubscribed": "Nie będziesz otrzymywał żadnych powiadomień o o tym poście.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} głosów",
"showpost.postsearch.query.placeholder": "Szukaj oryginalnego posta...",
- "showpost.response.date": "Status zmieniono na {status} dnia {statusDate}",
"showpost.responseform.message.mergedvotes": "Głosy z tego posta zostaną scalone z oryginalnym postem.",
"showpost.responseform.text.placeholder": "Co się dzieje w temacie tego posta? Daj swoim użytkownikom znać o swoich planach...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} więcej",
-- "showpost.votespanel.seedetails": "pokaż szczegóły",
"signin.code.edit": "Redagować",
- "signin.code.expired": "Ten kod wygasł lub został już wykorzystany. Poproś o nowy.",
"signin.code.getnew": "Uzyskaj nowy kod",
"signin.code.instruction": "Proszę wpisać kod, który właśnie wysłaliśmy na adres <0>{email}</0>",
- "signin.code.invalid": "Podany kod jest nieprawidłowy. Spróbuj ponownie.",
"signin.code.placeholder": "Wpisz tutaj kod",
"signin.code.sent": "Nowy kod został wysłany na Twój adres e-mail.",
- "signin.code.submit": "Składać",
"signin.email.placeholder": "Adres e-mail",
"signin.message.email": "Kontynuuj z e-mailem",
"signin.message.emaildisabled": "Autoryzacja za pomocą adresu email została wyłączona przez administratora. Jeśli posiadasz konto administratora i chcesz obejść to ograniczenie <0>kliknij tutaj</0>.",
diff --cc locale/pt-BR/client.json
index 74c607f2c,43789ef09..046727e52
--- a/locale/pt-BR/client.json
+++ b/locale/pt-BR/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Editar",
"action.markallasread": "Marcar todas como lidas",
"action.ok": "OK",
+ "action.postcomment": "",
"action.postsfeed": "Feed de postagens",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Responder",
"action.save": "Salvar",
"action.signin": "Iniciar sessão",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Gostaríamos de ouvir sobre o que você está pensando.\n\nO que podemos fazer melhor? Este é o lugar para você votar, discutir e compartilhar ideias.",
"home.lonely.suggestion": "É recomendável que você crie <0>pelo menos 3</0> sugestões aqui antes de compartilhar este site. O conteúdo inicial é importante para começar a engajar seu público.",
"home.lonely.text": "Nenhuma postagem foi criada ainda.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Ter",
"home.postfilter.label.status": "",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Visualizar",
"home.postfilter.option.mostdiscussed": "Mais Discutidos",
"home.postfilter.option.mostwanted": "Mais Desejados",
"home.postfilter.option.myposts": "Minhas postagens",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Notificações",
"label.or": "OU",
"label.searchtags": "Pesquisar tags...",
- "label.selecttags": "Escolha as tags...",
"label.subscribe": "Inscrever-se",
"label.tags": "Etiquetas",
- "label.unfollow": "Deixar de seguir",
"label.unread": "Não lidas",
"label.unsubscribe": "Desinscrever-se",
+ "label.vote": "",
"label.voters": "Votantes",
+ "label.votes": "",
"labels.notagsavailable": "Não há tags disponíveis",
- "labels.notagsselected": "Nenhuma tag selecionada",
"legal.agreement": "Eu li e concordo com os <0/> e <1/>.",
- "legal.notice": "Ao fazer o login, você concorda com os <2/><0/> e <1/>.",
+ "legal.notice": "Ao fazer o login, você concorda com os <0/><1/> e <2/>.",
"legal.privacypolicy": "Política de Privacidade",
"legal.termsofservice": "Termos do Serviço",
"linkmodal.insert": "Inserir link",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "ID de comentário #{id} inválido",
"showpost.commentinput.placeholder": "Deixe um comentário",
"showpost.copylink.success": "Link copiado para a área de transferência",
- "showpost.discussionpanel.emptymessage": "Ninguém comentou ainda.",
- "showpost.label.author": "Publicado por <0/> · <1/>",
"showpost.message.nodescription": "Nenhuma descrição fornecida.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Esta operação <0>não pode</0> ser desfeita.",
"showpost.moderationpanel.text.placeholder": "Por que você está excluindo esta postagem? (opcional)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# voto} other {# votos}}",
"showpost.notificationspanel.message.subscribed": "Você está recebendo notificações sobre a atividade nesta postagem.",
"showpost.notificationspanel.message.unsubscribed": "Você não receberá nenhuma notificação sobre esta postagem.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} votos",
"showpost.postsearch.query.placeholder": "Procurar postagem original...",
- "showpost.response.date": "Status alterado para {status} em {statusDate}",
"showpost.responseform.message.mergedvotes": "Votos desta publicação serão mesclados na postagem original.",
"showpost.responseform.text.placeholder": "O que está acontecendo com esta postagem? Informe seus usuários quais são os seus planos...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} mais",
-- "showpost.votespanel.seedetails": "ver detalhes",
"signin.code.edit": "Editar",
- "signin.code.expired": "Este código expirou ou já foi usado. Solicite um novo.",
"signin.code.getnew": "Obtenha um novo código",
"signin.code.instruction": "Por favor, digite o código que acabamos de enviar para <0>{email}</0>",
- "signin.code.invalid": "O código que você digitou é inválido. Por favor, tente novamente.",
"signin.code.placeholder": "Digite o código aqui",
"signin.code.sent": "Um novo código foi enviado para o seu e-mail.",
- "signin.code.submit": "Enviar",
"signin.email.placeholder": "Endereço de e-mail",
"signin.message.email": "Entrar com email",
"signin.message.emaildisabled": "A autenticação por e-mail foi desativada por um administrador. Se você tem uma conta de administrador e precisa ignorar esta restrição, <0>clique aqui</0>.",
diff --cc locale/ru/client.json
index fa49377bf,dd731034b..ffd1615c3
--- a/locale/ru/client.json
+++ b/locale/ru/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Изменить",
"action.markallasread": "Отметить всё как прочитанное",
"action.ok": "ХОРОШО",
+ "action.postcomment": "",
"action.postsfeed": "Лента сообщений",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Ответить",
"action.save": "Сохранить",
"action.signin": "Войти",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Мы хотели бы услышать ваше мнение. \n\nКак мы можем улучшиться? Здесь можно голосовать, обсуждать и делиться идеями.",
"home.lonely.suggestion": "Советуем создать <0>хотя бы 3</0> предложения перед публикацией этого сайта. Это важно для большего вовлечения аудитории.",
"home.lonely.text": "Здесь пока нет постов.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Собственный",
"home.postfilter.label.status": "Статус",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Просмотреть",
"home.postfilter.option.mostdiscussed": "Наиболее обсуждаемые",
"home.postfilter.option.mostwanted": "Наиболее востребованные",
"home.postfilter.option.myposts": "Мои сообщения",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Уведомления",
"label.or": "ИЛИ",
"label.searchtags": "Поиск тегов...",
- "label.selecttags": "Выберите теги...",
"label.subscribe": "Подписаться",
"label.tags": "Теги",
- "label.unfollow": "Отписаться",
"label.unread": "Непрочитанные",
"label.unsubscribe": "Отписаться",
+ "label.vote": "",
"label.voters": "Проголосовавшие",
+ "label.votes": "",
"labels.notagsavailable": "Нет доступных тегов",
- "labels.notagsselected": "Теги не выбраны",
"legal.agreement": "Я прочитал и согласен с <0/> и <1/>.",
- "legal.notice": "Войдя в систему, вы соглашаетесь с <2/><0/> и <1/>.",
+ "legal.notice": "Войдя в систему, вы соглашаетесь с <0/><1/> и <2/>.",
"legal.privacypolicy": "Политика Конфиденциальности",
"legal.termsofservice": "Условия Использования",
"linkmodal.insert": "Вставить ссылку",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Некорректный ID комментария #{id}",
"showpost.commentinput.placeholder": "Оставить комментарий",
"showpost.copylink.success": "Ссылка скопирована в буфер обмена",
- "showpost.discussionpanel.emptymessage": "Комментариев нет.",
- "showpost.label.author": "Создал <0/> · <1/>",
"showpost.message.nodescription": "Описания нет.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Это действие <0>нельзя</0> отменить.",
"showpost.moderationpanel.text.placeholder": "Почему вы удаляете этот пост? (необязательно)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Вы подписаны на уведомления об активности в этом посте.",
"showpost.notificationspanel.message.unsubscribed": "Вы не подписаны на уведомления об активности в этом посте.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} голосов",
"showpost.postsearch.query.placeholder": "Выберите оригинальный пост...",
- "showpost.response.date": "Статус изменен на {status} на {statusDate}",
"showpost.responseform.message.mergedvotes": "Голоса этого поста будут прибавлены к голосам оригинального поста.",
"showpost.responseform.text.placeholder": "Что произойдёт с этим предложением? Дайте людям знать о ваших планах...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "и ещё {extraVotesCount}",
-- "showpost.votespanel.seedetails": "подробнее",
"signin.code.edit": "Редактировать",
- "signin.code.expired": "Срок действия этого кода истёк или он уже был использован. Запросите новый.",
"signin.code.getnew": "Получить новый код",
"signin.code.instruction": "Пожалуйста, введите код, который мы только что отправили на номер <0>{email}</0>",
- "signin.code.invalid": "Введённый вами код недействителен. Попробуйте ещё раз.",
"signin.code.placeholder": "Введите код здесь",
"signin.code.sent": "Новый код был отправлен на вашу электронную почту.",
- "signin.code.submit": "Представлять на рассмотрение",
"signin.email.placeholder": "Адрес электронной почты",
"signin.message.email": "Продолжить с электронной почтой",
"signin.message.emaildisabled": "Аутентификация по адресу электронной почты отключена. <0>Я администратор и мне нужно обойти это ограничение</0>.",
diff --cc locale/sk/client.json
index 2e27699c6,621bbdb48..f5e44b986
--- a/locale/sk/client.json
+++ b/locale/sk/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Upraviť",
"action.markallasread": "Označiť všetko ako prečítané",
"action.ok": "V poriadku",
+ "action.postcomment": "",
"action.postsfeed": "Kanál príspevkov",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Odpovedať",
"action.save": "Uložiť",
"action.signin": "Prihlásiť sa",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Radi by sme počuli, čo máte na mysli.\n\nČo môžeme urobiť lepšie? Tu môžete hlasovať, diskutovať a zdieľať nápady.",
"home.lonely.suggestion": "Pred zdieľaním tejto stránky tu odporúčame vytvoriť <0> aspoň 3 </0> návrhy. Počiatočný obsah je dôležitý, aby ste mohli zaujať publikum.",
"home.lonely.text": "Zatiaľ neboli vytvorené žiadne príspevky.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Vlastniť",
"home.postfilter.label.status": "Stav",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Prehľad",
"home.postfilter.option.mostdiscussed": "Najviac diskutované",
"home.postfilter.option.mostwanted": "Najhľadanejšie",
"home.postfilter.option.myposts": "Moje príspevky",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Notifikácie",
"label.or": "ALEBO",
"label.searchtags": "Hľadať značky...",
- "label.selecttags": "Vybrať značky...",
"label.subscribe": "Prihlásiť sa k odberu",
"label.tags": "Značky",
- "label.unfollow": "Prestať sledovať",
"label.unread": "Neprečítané",
"label.unsubscribe": "Zrušiť odber",
+ "label.vote": "",
"label.voters": "Hlasujúci",
+ "label.votes": "",
"labels.notagsavailable": "Značky nie sú dostupné",
- "labels.notagsselected": "Žiadne vybrané značky",
"legal.agreement": "Prečítal som a súhlasím s <0/> a <1/>.",
- "legal.notice": "Prihlásením súhlasíte s <2/><0/> a <1/>.",
+ "legal.notice": "Prihlásením súhlasíte s <0/><1/> a <2/>.",
"legal.privacypolicy": "Zásady ochrany osobných údajov",
"legal.termsofservice": "Podmienky služby",
"linkmodal.insert": "Vložiť odkaz",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Neplatné ID komentára #{id}",
"showpost.commentinput.placeholder": "Zanechať komentár",
"showpost.copylink.success": "Odkaz skopírovaný do schránky",
- "showpost.discussionpanel.emptymessage": "Zatiaľ sa nikto nevyjadril.",
- "showpost.label.author": "Pridané <0/> · <1/>",
"showpost.message.nodescription": "Nie je poskytnutý žiadny popis.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Túto operáciu <0>nemožno</0> vrátiť späť.",
"showpost.moderationpanel.text.placeholder": "Prečo mažete tento príspevok? (voliteľné)",
- "showpost.mostwanted.comments": "{count, plural, one {# komentár} few {# komentáre} other {# komentárov}}",
- "showpost.mostwanted.votes": "{count, plural, one {# hlas} few {# hlasy} other {# hlasov}}",
"showpost.notificationspanel.message.subscribed": "Dostávate upozornenia na aktivitu v tomto príspevku.",
"showpost.notificationspanel.message.unsubscribed": "Na tento príspevok nedostanete žiadne upozornenie.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} hlasov",
"showpost.postsearch.query.placeholder": "Hľadať pôvodný príspevok...",
- "showpost.response.date": "Stav zmenený dňa {statusDate} na {status}",
"showpost.responseform.message.mergedvotes": "Hlasy z tohto príspevku budú zlúčené do pôvodného príspevku.",
"showpost.responseform.text.placeholder": "Čo sa deje s týmto príspevkom? Dajte svojim používateľom vedieť, aké máte plány...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} viac",
-- "showpost.votespanel.seedetails": "pozri detaily",
"signin.code.edit": "Upraviť",
- "signin.code.expired": "Platnosť tohto kódu vypršala alebo už bol použitý. Požiadajte o nový.",
"signin.code.getnew": "Získať nový kód",
"signin.code.instruction": "Zadajte kód, ktorý sme práve poslali na adresu <0>{email}</0>",
- "signin.code.invalid": "Zadaný kód je neplatný. Skúste to znova.",
"signin.code.placeholder": "Sem zadajte kód",
"signin.code.sent": "Nový kód bol odoslaný na váš e-mail.",
- "signin.code.submit": "Odoslať",
"signin.email.placeholder": "Emailová adresa",
"signin.message.email": "Pokračovať pomocou e-mailu",
"signin.message.emaildisabled": "Správca zakázal overovanie emailu. Ak máte účet správcu a potrebujete obísť toto obmedzenie, <0>kliknite sem</0>.",
diff --cc locale/sv-SE/client.json
index b6b9288a1,e2c0c7df3..8aa66a2c5
--- a/locale/sv-SE/client.json
+++ b/locale/sv-SE/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Ändra",
"action.markallasread": "Markera alla som lästa",
"action.ok": "OK",
+ "action.postcomment": "",
"action.postsfeed": "Inläggsflöde",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Svara",
"action.save": "Spara",
"action.signin": "Logga in",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Vi vill gärna höra vad du tänker på.\n\nVad kan vi göra bättre? Detta är platsen för dig att rösta, diskutera och dela idéer.",
"home.lonely.suggestion": "Vi rekommenderar att du skapar <0>minst 3</0> förslag här innan du börjar dela den här webbplatsen. Det initiala innehållet är viktigt för att engagera dina besökare.",
"home.lonely.text": "Det finns inte några inlägg ännu.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Egen",
"home.postfilter.label.status": "",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Visa",
"home.postfilter.option.mostdiscussed": "Mest diskuterade",
"home.postfilter.option.mostwanted": "Mest önskade",
"home.postfilter.option.myposts": "Mina inlägg",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Aviseringar",
"label.or": "ELLER",
"label.searchtags": "Sök efter taggar...",
- "label.selecttags": "Välj taggar...",
"label.subscribe": "Prenumerera",
"label.tags": "Etiketter",
- "label.unfollow": "Sluta följa",
"label.unread": "Olästa",
"label.unsubscribe": "Avsluta prenumeration",
+ "label.vote": "",
"label.voters": "Röstande",
+ "label.votes": "",
"labels.notagsavailable": "Inga taggar tillgängliga",
- "labels.notagsselected": "Inga taggar valda",
"legal.agreement": "Jag har läst och godkänner <0/> och <1/>.",
- "legal.notice": "Genom att logga in godkänner du <2/><0/> och <1/>.",
+ "legal.notice": "Genom att logga in godkänner du <0/><1/> och <2/>.",
"legal.privacypolicy": "Integritetspolicy",
"legal.termsofservice": "Användarvillkor",
"linkmodal.insert": "Infoga länk",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Ogiltigt kommentar-ID #{id}",
"showpost.commentinput.placeholder": "Skriv en kommentar",
"showpost.copylink.success": "Länk kopierad till urklipp",
- "showpost.discussionpanel.emptymessage": "Ingen har kommenterat ännu.",
- "showpost.label.author": "Skriven av <0/> · <1/>",
"showpost.message.nodescription": "Ingen beskrivning angiven.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Denna åtgärd <0>går inte</0> att ångra.",
"showpost.moderationpanel.text.placeholder": "Varför tar du bort detta inlägg? (valfritt)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Du får aviseringar om aktivitet på det här inlägget.",
"showpost.notificationspanel.message.unsubscribed": "Du får inte aviseringar för det här inlägget.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} röster",
"showpost.postsearch.query.placeholder": "Sök i ursprungliga inlägget...",
- "showpost.response.date": "Status ändrades till {status} den {statusDate}",
"showpost.responseform.message.mergedvotes": "Röster från det här inlägget kommer att flyttas till det ursprungliga inlägget.",
"showpost.responseform.text.placeholder": "Vad händer med det här inlägget? Låt dina användare veta vad du planerar...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} ytterligare",
-- "showpost.votespanel.seedetails": "visa detaljer",
"signin.code.edit": "Redigera",
- "signin.code.expired": "Denna kod har gått ut eller har redan använts. Vänligen begär en ny.",
"signin.code.getnew": "Skaffa en ny kod",
"signin.code.instruction": "Vänligen skriv in koden vi just skickade till <0>{email}</0>",
- "signin.code.invalid": "Koden du angav är ogiltig. Försök igen.",
"signin.code.placeholder": "Skriv in koden här",
"signin.code.sent": "En ny kod har skickats till din e-postadress.",
- "signin.code.submit": "Överlämna",
"signin.email.placeholder": "E-postadress",
"signin.message.email": "Fortsätt med e-post",
"signin.message.emaildisabled": "E-postautentisering har inaktiverats av en administratör. Om du har ett administratörskonto och behöver kringgå denna begränsning, <0>klicka här</0>.",
diff --cc locale/tr/client.json
index 26d0a7437,a630cac4f..1ec83d04c
--- a/locale/tr/client.json
+++ b/locale/tr/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "Düzenle",
"action.markallasread": "Tümünü Okundu olarak işaretle",
"action.ok": "Tamam",
+ "action.postcomment": "",
"action.postsfeed": "Gönderi Beslemesi",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "Yanıtla",
"action.save": "Kaydet",
"action.signin": "Giriş Yap",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "Ne düşündüğünüzü öğrenmeyi çok isteriz.\n\nKendimizi nasıl geliştirebiliriz? Burada önerileri oylayabilir, tartışabilir ya da paylaşabilirsiniz.",
"home.lonely.suggestion": "Siteyi paylaşmadan önce buraya <0>en az 3</0> öneri girmenizi tavsiye ederiz. İlk içerikler, hedef kitlenizin etkileşime geçmesi için önemlidir.",
"home.lonely.text": "Henüz hiç öneri oluşturulmadı.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "Sahip olmak",
"home.postfilter.label.status": "Durum",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "Görünüm",
"home.postfilter.option.mostdiscussed": "En Tartışılan",
"home.postfilter.option.mostwanted": "En Talep Edilen",
"home.postfilter.option.myposts": "Yazılarım",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "Bildirimler",
"label.or": "VEYA",
"label.searchtags": "Etiketleri ara...",
- "label.selecttags": "Etiketleri seçin...",
"label.subscribe": "Abone ol",
"label.tags": "Etiketler",
- "label.unfollow": "Takipten çık",
"label.unread": "Okunmamış",
"label.unsubscribe": "Abonelikten çık",
+ "label.vote": "",
"label.voters": "Oy verenler",
+ "label.votes": "",
"labels.notagsavailable": "Hiçbir etiket mevcut değil",
- "labels.notagsselected": "Hiçbir etiket seçilmedi",
"legal.agreement": "<0/> ve <1/> okudum ve onayladım.",
- "legal.notice": "Giriş yaparak <2/><0/> ve <1/> maddelerini kabul etmiş olursunuz.",
+ "legal.notice": "Giriş yaparak <0/><1/> ve <2/> maddelerini kabul etmiş olursunuz.",
"legal.privacypolicy": "Gizlilik Politikası",
"legal.termsofservice": "Hizmet Koşulları",
"linkmodal.insert": "Bağlantı Ekle",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "Geçersiz yorum kimliği #{id}",
"showpost.commentinput.placeholder": "Yorum yazın",
"showpost.copylink.success": "Bağlantı panoya kopyalandı",
- "showpost.discussionpanel.emptymessage": "Henüz hiç kimse yorum yapmadı.",
- "showpost.label.author": "<0/> · <1/> tarafından gönderildi",
"showpost.message.nodescription": "Herhangi bir açıklama belirtilmedi.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "Bu işlem geri <0>alınamaz</0>.",
"showpost.moderationpanel.text.placeholder": "Bu öneriyi neden siliyorsunuz? (isteğe bağlı)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "Bu öneri üzerindeki hareketler hakkında bildirimler alacaksınız.",
"showpost.notificationspanel.message.unsubscribed": "Bu öneri hakkında bildirim almayacaksınız.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} oy",
"showpost.postsearch.query.placeholder": "Orijinal öneri ara...",
- "showpost.response.date": "Durum {statusDate} için {status} olarak değiştirildi",
"showpost.responseform.message.mergedvotes": "Bu önerideki yorumlar orijinal öneriye dahil edilecek.",
"showpost.responseform.text.placeholder": "Bu öneriye neler oluyor? Kullanıcılara planlarınız hakkında bilgi verin...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} daha",
-- "showpost.votespanel.seedetails": "ayrıntıları gör",
"signin.code.edit": "Düzenlemek",
- "signin.code.expired": "Bu kodun süresi dolmuş veya daha önce kullanılmış. Lütfen yenisini talep edin.",
"signin.code.getnew": "Yeni bir kod al",
"signin.code.instruction": "Lütfen az önce <0>{email}</0> adresine gönderdiğimiz kodu yazın",
- "signin.code.invalid": "Girdiğiniz kod geçersiz. Lütfen tekrar deneyin.",
"signin.code.placeholder": "Kodu buraya yazın",
"signin.code.sent": "E-postanıza yeni bir kod gönderildi.",
- "signin.code.submit": "Göndermek",
"signin.email.placeholder": "E-posta adresi",
"signin.message.email": "E-postayla devam et",
"signin.message.emaildisabled": "E-posta doğrulaması bir yönetici tarafından devre dışı bırakıldı. Eğer bir yönetici hesabınız varsa ve bu kısıtı kaldırmak istiyorsanız <0>buraya tıklayın</0>.",
diff --cc locale/zh-CN/client.json
index aa10dceaa,966905616..7ccb47a37
--- a/locale/zh-CN/client.json
+++ b/locale/zh-CN/client.json
@@@ -10,9 -10,8 +10,10 @@@
"action.edit": "编辑",
"action.markallasread": "将全部标记为已读",
"action.ok": "确定",
+ "action.postcomment": "",
"action.postsfeed": "帖子提要",
+ "action.publish": "",
+ "action.publish.verify": "",
"action.respond": "回复/标记",
"action.save": "保存",
"action.signin": "登录",
@@@ -47,11 -47,9 +48,9 @@@
"home.form.defaultwelcomemessage": "我们很想听听你在想什么。\n\n我们能做得更好吗?这是您投票、讨论和分享想法的地方.",
"home.lonely.suggestion": "建议您在共享此网站之前,在此处创建<0>至少3个</0>建议。初始内容对于开始吸引观众很重要.",
"home.lonely.text": "尚未创建任何帖子.",
+ "home.postfilter.label.moderation": "",
"home.postfilter.label.myactivity": "自己的",
"home.postfilter.label.status": "地位",
- "home.postfilter.moderation.approved": "",
- "home.postfilter.moderation.pending": "",
- "home.postfilter.label.view": "看板",
"home.postfilter.option.mostdiscussed": "讨论最多",
"home.postfilter.option.mostwanted": "投票最多",
"home.postfilter.option.myposts": "我的帖子",
@@@ -79,14 -84,21 +78,16 @@@
"label.notifications": "通知",
"label.or": "或者",
"label.searchtags": "搜索标签...",
- "label.selecttags": "选择标签...",
"label.subscribe": "订阅",
"label.tags": "标签",
- "label.unfollow": "取消关注",
"label.unread": "未读",
"label.unsubscribe": "取消订阅",
+ "label.vote": "",
"label.voters": "投票者",
+ "label.votes": "",
"labels.notagsavailable": "没有可用的标签",
- "labels.notagsselected": "未选择标签",
"legal.agreement": "我已阅读并同意<0/>和<1/>。",
- "legal.notice": "在签署时,您同意<2/><0/>和<1/>。",
+ "legal.notice": "在签署时,您同意<0/><1/>和<2/>。",
"legal.privacypolicy": "隐私政策",
"legal.termsofservice": "服务条款",
"linkmodal.insert": "插入链接",
@@@ -185,37 -190,33 +186,36 @@@
"showpost.comment.unknownhighlighted": "无效的评论ID #{id}",
"showpost.commentinput.placeholder": "发表评论",
"showpost.copylink.success": "链接已复制到剪贴板",
- "showpost.discussionpanel.emptymessage": "还没有人发表评论.",
- "showpost.label.author": "发表者 <0/> · <1/>",
"showpost.message.nodescription": "未提供描述.",
+ "showpost.moderation.admin.description": "",
+ "showpost.moderation.admin.title": "",
+ "showpost.moderation.approved": "",
+ "showpost.moderation.approveerror": "",
+ "showpost.moderation.awaiting": "",
+ "showpost.moderation.comment.admin.description": "",
+ "showpost.moderation.comment.approved": "",
+ "showpost.moderation.comment.approveerror": "",
+ "showpost.moderation.comment.awaiting": "",
+ "showpost.moderation.comment.declined": "",
+ "showpost.moderation.comment.declineerror": "",
+ "showpost.moderation.commentsuccess": "",
+ "showpost.moderation.declined": "",
+ "showpost.moderation.declineerror": "",
+ "showpost.moderation.postsuccess": "",
"showpost.moderationpanel.text.help": "此操作<0>无法撤消</0>.",
"showpost.moderationpanel.text.placeholder": "你为什么要删除这篇内容?(可选)",
- "showpost.mostwanted.comments": "{count, plural, one {# comment} other {# comments}}",
- "showpost.mostwanted.votes": "{count, plural, one {# votes} other {# votes}}",
"showpost.notificationspanel.message.subscribed": "您正在收到有关此帖子活动的通知.",
"showpost.notificationspanel.message.unsubscribed": "您将不会收到有关此帖子的任何通知.",
+ "showpost.postedby": "",
"showpost.postsearch.numofvotes": "{0} 投票",
"showpost.postsearch.query.placeholder": "搜索原始帖子...",
- "showpost.response.date": "状态于 {statusDate} 更改为 {status}",
"showpost.responseform.message.mergedvotes": "此帖子的投票将合并到原始帖子中.",
"showpost.responseform.text.placeholder": "这篇文章怎么了?让你的用户知道你的计划是什么...",
- "showpost.stayupdated.description": "",
- "showpost.stayupdated.title": "",
-- "showpost.votespanel.more": "+{extraVotesCount} 更多",
-- "showpost.votespanel.seedetails": "查看详细信息",
"signin.code.edit": "编辑",
- "signin.code.expired": "此优惠码已过期或已被使用,请申请新的优惠码。",
"signin.code.getnew": "获取新代码",
"signin.code.instruction": "请输入我们刚刚发送到 <0>{email}</0> 的验证码",
- "signin.code.invalid": "您输入的验证码无效,请重试。",
"signin.code.placeholder": "在此处输入代码",
"signin.code.sent": "新的验证码已发送到您的邮箱。",
- "signin.code.submit": "提交",
"signin.email.placeholder": "电子邮件",
"signin.message.email": "通过电子邮件继续",
"signin.message.emaildisabled": "管理员已禁用电子邮件身份验证。如果您有管理员帐户并且需要绕过此限制,请 <0>点击这里</0>.",
diff --cc public/assets/styles/utility/text.scss
index c57fdbda2,fbd6dea01..2e77ca57f
--- a/public/assets/styles/utility/text.scss
+++ b/public/assets/styles/utility/text.scss
@@@ -23,8 -23,8 +23,8 @@@ pre:last-child
}
.text-display {
-- font-size: get("font.size.xl");
-- font-weight: get("font.weight.semibold");
++ font-size: get("font.size.3xl");
++ font-weight: get("font.weight.xbold");
}
.text-header {
diff --cc public/assets/styles/variables/_text.scss
index 015668900,0ef975686..3e5dcbdf0
--- a/public/assets/styles/variables/_text.scss
+++ b/public/assets/styles/variables/_text.scss
@@@ -15,6 -15,6 +15,7 @@@ $font:
lg: 18px,
xl: 22px,
"2xl": 26px,
++ "3xl": 32px,
),
weight: (
light: 300,
diff --cc public/components/Header.tsx
index 261154198,64b36af7e..dfa79aa8e
--- a/public/components/Header.tsx
+++ b/public/components/Header.tsx
@@@ -1,5 -1,5 +1,5 @@@
import React, { useState } from "react"
- import { SignInModal, RSSModal, TenantLogo, NotificationIndicator, ModerationIndicator, UserMenu, ThemeSwitcher, Icon } from "@fider/components"
-import { SignInModal, RSSModal, TenantLogo, NotificationIndicator, UserMenu, ThemeSwitcher, Icon, Button } from "@fider/components"
++import { SignInModal, RSSModal, TenantLogo, NotificationIndicator, ModerationIndicator, UserMenu, ThemeSwitcher, Icon, Button } from "@fider/components"
import { useFider } from "@fider/hooks"
import { HStack } from "./layout"
import { Trans } from "@lingui/react/macro"
@@@ -63,9 -60,14 +62,13 @@@ export const Header = (props: HeaderPro
</button>
)}
<ThemeSwitcher />
- <a href="#" className="uppercase text-sm" onClick={showSignInModal}>
- <Trans id="action.signin">Sign in</Trans>
- </a>
+ <Button variant="primary" size="default" onClick={handleSignInClick}>
+ <HStack spacing={1} className="flex-items-center">
- <Icon sprite={IconArrowLeft} className="h-4" style={{ transform: "rotate(180deg)" }} />
+ <span>
+ <Trans id="action.signin">Sign in</Trans>
+ </span>
+ </HStack>
+ </Button>
</HStack>
)}
</HStack>
diff --cc public/components/ShowPostResponse.tsx
index 2a77afeac,feafdd1bf..9be547232
--- a/public/components/ShowPostResponse.tsx
+++ b/public/components/ShowPostResponse.tsx
@@@ -1,17 -1,17 +1,17 @@@
import React from "react"
import { PostResponse, PostStatus } from "@fider/models"
- import { Icon, Markdown } from "@fider/components"
-import { Icon, Markdown, UserName, Moment } from "@fider/components"
++import { Icon, Markdown, UserName, Moment, Avatar } from "@fider/components"
import HeroIconDuplicate from "@fider/assets/images/heroicons-duplicate.svg"
import HeroIconCheck from "@fider/assets/images/heroicons-check-circle.svg"
import HeroIconSparkles from "@fider/assets/images/heroicons-sparkles-outline.svg"
import HeroIconLightBulb from "@fider/assets/images/heroicons-lightbulb.svg"
import HeroIconThumbsUp from "@fider/assets/images/heroicons-thumbsup.svg"
import HeroIconThumbsDown from "@fider/assets/images/heroicons-thumbsdown.svg"
-import { HStack } from "./layout"
+import { HStack, VStack } from "./layout"
- import { timeSince } from "@fider/services"
import { Trans } from "@lingui/react/macro"
+ import { useFider } from "@fider/hooks"
- type Size = "micro" | "small" | "normal"
+ type Size = "micro" | "small" | "xsmall" | "normal"
interface PostResponseProps {
status: string
@@@ -26,24 -27,34 +27,36 @@@ export const ResponseDetails = (props:
return null
}
- const { bg } = getLozengeProps(status)
-
return (
- <VStack align="start" spacing={4} className="bg-blue-50 p-3 border border-blue-200 rounded">
- <ResponseLozenge response={props.response} status={props.status} />
- <div className="text-semibold text-lg">{timeSince("en", new Date(), props.response.respondedAt, "date")}</div>
- {props.response?.text && status !== PostStatus.Duplicate && (
- <div className="content">
- <Markdown text={props.response.text} style="full" />
- </div>
- )}
+ <HStack spacing={4} align="start" className="c-response-details">
- <div className={`c-response-details__card ${bg} `}>
- <div className="c-response-details__header">
- <HStack spacing={2} align="center">
- <UserName user={props.response.user} />
- <span className="text-xs text-gray-600">•</span>
- <Moment className="text-xs text-gray-600" locale={fider.currentLocale} date={props.response.respondedAt} />
- </HStack>
- </div>
++ <Avatar user={props.response.user} size="large" />
++ <div className="c-response-details__card">
++ <div className="c-response-details__inner">
++ <VStack spacing={2}>
++ <HStack spacing={2} align="center">
++ <UserName user={props.response.user} />
++ <span className="text-xs text-gray-600">•</span>
++ <Moment className="text-xs text-gray-600" locale={fider.currentLocale} date={props.response.respondedAt} />
++ <ResponseLozenge status={props.status} response={props.response} size="xsmall" />
++ </HStack>
+
- {props.response?.text && status !== PostStatus.Duplicate && (
- <div className="c-response-details__content">
- <Markdown text={props.response.text} style="full" />
- </div>
- )}
++ {props.response?.text && status !== PostStatus.Duplicate && (
++ <div className="c-response-details__content">
++ <Markdown text={props.response.text} style="full" />
++ </div>
++ )}
- {status === PostStatus.Duplicate && props.response.original && (
- <div className="content">
- <a className="text-link" href={`/posts/${props.response.original.number}/${props.response.original.slug}`}>
- {props.response.original.title}
- </a>
- {status === PostStatus.Duplicate && props.response.original && (
- <div className="c-response-details__content">
- <a className="text-link" href={`/posts/${props.response.original.number}/${props.response.original.slug}`}>
- {props.response.original.title}
- </a>
- </div>
- )}
++ {status === PostStatus.Duplicate && props.response.original && (
++ <div className="c-response-details__content">
++ <a className="text-link" href={`/posts/${props.response.original.number}/${props.response.original.slug}`}>
++ {props.response.original.title}
++ </a>
++ </div>
++ )}
++ </VStack>
+ </div>
- )}
- </VStack>
+ </div>
+ </HStack>
)
}
@@@ -54,13 -65,13 +67,15 @@@ const getLozengeProps = (status: PostSt
case PostStatus.Duplicate:
return { icon: HeroIconDuplicate, bg: "bg-yellow-100", color: "text-yellow-800", border: "border-yellow-400" }
case PostStatus.Completed:
-- return { icon: HeroIconCheck, bg: "bg-green-300", color: "text-green-800", border: "border-green-500" }
++ return { icon: HeroIconCheck, bg: "bg-green-100", color: "text-green-800", border: "border-green-400" }
case PostStatus.Planned:
return { icon: HeroIconThumbsUp, bg: "bg-blue-100", color: "text-blue-700", border: "border-blue-400" }
++ case PostStatus.Started:
++ return { icon: HeroIconSparkles, bg: "bg-blue-100", color: "text-blue-700", border: "border-blue-400" }
case PostStatus.Open:
return { icon: HeroIconLightBulb, bg: "bg-blue-100", color: "text-blue-700", border: "border-blue-400" }
default:
-- return { icon: HeroIconSparkles, bg: "bg-green-100", color: "text-green-700", border: "border-green-400" }
++ return { icon: HeroIconSparkles, bg: "bg-blue-100", color: "text-blue-700", border: "border-blue-400" }
}
}
diff --cc public/pages/Administration/pages/AdvancedSettings.page.tsx
index f41b0cfa4,c7c893ec6..e95efca68
--- a/public/pages/Administration/pages/AdvancedSettings.page.tsx
+++ b/public/pages/Administration/pages/AdvancedSettings.page.tsx
@@@ -60,30 -50,6 +60,28 @@@ export default class AdvancedSettingsPa
public content() {
return (
<Form error={this.state.error}>
+ {this.props.isCommercial && this.props.licenseKey && (
+ <div className="field">
+ <label>Commercial License Key</label>
- <p className="text-muted">
- Use this key to run Fider self-hosted with commercial features (content moderation).
- </p>
++ <p className="text-muted">Use this key to run Fider self-hosted with commercial features (content moderation).</p>
+ <div className="mt-2 mb-4">
+ <div className="flex gap-2">
+ <input
+ type="text"
+ id="licenseKey"
+ readOnly
+ value={this.props.licenseKey}
+ className="w-full font-mono text-sm bg-gray-50 border border-gray-300 rounded px-3 py-2"
+ style={{ fontFamily: "monospace" }}
+ />
+ <Button size="small" onClick={this.copyLicenseKey} className="whitespace-nowrap">
+ {this.state.copied ? "Copied!" : "Copy"}
+ </Button>
+ </div>
+ </div>
+ </div>
+ )}
+
<TextArea
field="customCSS"
label="Custom CSS"
diff --cc public/pages/Administration/pages/ManageBilling.page.tsx
index 08bda8de1,05a2ee743..25b6ec5ab
--- a/public/pages/Administration/pages/ManageBilling.page.tsx
+++ b/public/pages/Administration/pages/ManageBilling.page.tsx
@@@ -75,28 -78,50 +75,28 @@@ const PlanCard = (props: PlanCardProps
)
}
-const ActiveSubscriptionInformation = (props: ManageBillingPageProps) => {
- const fider = useFider()
- const { isReady, openUrl } = usePaddle({ ...props.paddle })
-
- const open = (url: string) => () => {
- if (isReady) {
- openUrl(url)
- }
- }
+interface PaddleMigrationBannerProps {
+ onUpgradeClick: () => void
+ isLoading: boolean
+}
+const PaddleMigrationBanner = (props: PaddleMigrationBannerProps) => {
return (
- <VStack>
- <h3 className="text-display">Your subscription is Active</h3>
- <CardDetails {...props.subscription.paymentInformation} />
- <p>
- Your next payment is{" "}
- <strong>
- <Money amount={props.subscription.nextPayment.amount} currency={props.subscription.nextPayment.currency} locale={fider.currentLocale} />
- </strong>{" "}
- on{" "}
- <strong>
- <Moment locale={fider.currentLocale} format="date" date={props.subscription.nextPayment.date} />
- </strong>
- .
- </p>
- <p>
- You can{" "}
- <a href="#" rel="noopener" className="text-link" onClick={open(props.subscription.updateURL)}>
- update
- </a>{" "}
- your payment information or{" "}
- <a href="#" rel="noopener" className="text-link" onClick={open(props.subscription.cancelURL)}>
- cancel
- </a>{" "}
- your subscription at any time.
- </p>
- <p>
- To change your billing interval from monthly to yearly or vice-versa, please contact us at{" "}
- <a className="text-link" href="mailto:[email protected]">
- </a>
- .
- </p>
- </VStack>
+ <div className="bg-blue-50 p-4 rounded mb-6 border border-blue-200">
+ <HStack spacing={2} align="start">
+ <Icon sprite={IconInfo} className="text-blue-600 flex-shrink-0 mt-0.5" height="20" />
+ <VStack spacing={1}>
+ <p className="text-sm text-gray-900 text-medium">Migration to Stripe Billing</p>
+ <p className="text-sm text-gray-700">
- You're currently entitled to pro features because of your existing subscription.
++ You&apos;re currently entitled to pro features because of your existing subscription.
+ <br />
+ <a onClick={props.onUpgradeClick} className="clickable text-blue-600">
+ {props.isLoading ? "Loading..." : "Switch to our new Stripe billing instead and save money"}
+ </a>
+ </p>
+ </VStack>
+ </HStack>
+ </div>
)
}
diff --cc public/pages/Home/components/ListPosts.tsx
index 21c0354ff,1b268eaa9..0db146a0e
--- a/public/pages/Home/components/ListPosts.tsx
+++ b/public/pages/Home/components/ListPosts.tsx
@@@ -1,9 -1,8 +1,9 @@@
import React from "react"
import { Post, Tag, CurrentUser } from "@fider/models"
- import { ShowTag, VoteCounter, Markdown, Icon, ResponseLozenge } from "@fider/components"
+ import { ShowTag, Markdown, Icon, ResponseLozenge } from "@fider/components"
import IconChatAlt2 from "@fider/assets/images/heroicons-chat-alt-2.svg"
import { HStack, VStack } from "@fider/components/layout"
+import { useFider } from "@fider/hooks"
import { Trans } from "@lingui/react/macro"
interface ListPostsProps {
@@@ -14,35 -13,20 +14,31 @@@
}
const ListPostItem = (props: { post: Post; user?: CurrentUser; tags: Tag[] }) => {
+ const fider = useFider()
+ const isModerationEnabled = fider.session.tenant.isModerationEnabled
+ const isPending = isModerationEnabled && !props.post.isApproved
+
return (
- <HStack spacing={4} align="start" className="c-posts-container__post">
- <div>
- <VoteCounter post={props.post} />
- </div>
- <VStack className="w-full" spacing={2}>
+ <a href={`/posts/${props.post.number}/${props.post.slug}`} className="c-posts-container__post-link">
+ <VStack className="c-posts-container__post w-full" spacing={4}>
{props.post.status !== "open" && (
- <div className="mb-2 align-self-start">
+ <div className="mb-1 align-self-start">
<ResponseLozenge status={props.post.status} response={props.post.response} size={"small"} />
</div>
)}
- <HStack justify="between">
- <HStack spacing={2} align="start" justify="between" className="w-full">
- <a className="text-title text-break hover:text-primary-base" href={`/posts/${props.post.number}/${props.post.slug}`}>
- {props.post.title}
- </a>
+ <HStack justify="between" align="start">
- <h3 className="c-posts-container__post-title text-break">{props.post.title}</h3>
++ <HStack spacing={2} align="start" className="w-full">
++ <h3 className="c-posts-container__post-title text-break">{props.post.title}</h3>
+ {isPending && (
- <span className="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">
++ <span className="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded flex-shrink-0">
+ <Trans id="post.pending">pending</Trans>
+ </span>
+ )}
+ </HStack>
{props.post.commentsCount > 0 && (
- <HStack className="text-muted">
- {props.post.commentsCount} <Icon sprite={IconChatAlt2} className="h-4 ml-1" />
+ <HStack spacing={1} className="c-posts-container__post-comments flex-shrink-0">
+ <span>{props.post.commentsCount}</span>
+ <Icon sprite={IconChatAlt2} className="h-5 w-5" />
</HStack>
)}
</HStack>
@@@ -60,19 -48,12 +60,19 @@@
}
const MinimalListPostItem = (props: { post: Post; tags: Tag[] }) => {
+ const fider = useFider()
+ const isModerationEnabled = fider.session.tenant.isModerationEnabled
+ const isPending = isModerationEnabled && !props.post.isApproved
+
return (
- <HStack spacing={4} align="start" className="c-posts-container__post">
+ <HStack spacing={4} align="start" className="c-posts-container__post-minimal">
<HStack className="w-full" justify="between" align="start">
- <a className="text-link" href={`/posts/${props.post.number}/${props.post.slug}`}>
- {props.post.title}
- </a>
+ <HStack spacing={2} align="start" justify="between" className="w-full">
+ <a className="text-link" href={`/posts/${props.post.number}/${props.post.slug}`}>
+ {props.post.title}
+ </a>
+ {isPending && <span className="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">pending</span>}
+ </HStack>
{props.post.status !== "open" ? (
<div>
<ResponseLozenge status={props.post.status} response={props.post.response} size={"micro"} />
diff --cc public/pages/ShowPost/ShowPost.page.scss
index 969a00273,82131085d..2e477182e
--- a/public/pages/ShowPost/ShowPost.page.scss
+++ b/public/pages/ShowPost/ShowPost.page.scss
@@@ -14,11 -98,74 +98,74 @@@
}
&__action-col {
- > :first-child {
- // background-color: var(--colors-white);
- padding: spacing(4);
- // border-radius: get("border.radius.large");
+ display: flex;
+ flex-direction: column;
+ gap: spacing(4);
+
+ @include media("sm") {
+ margin-top: spacing(6);
}
+
+ > .card {
+ background-color: var(--colors-white);
+ @include dark-mode {
+ background-color: var(--colors-gray-200);
+ }
+ border-radius: get("border.radius.xlarge");
+ padding: spacing(6);
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
+ }
+
+ &__follow-button--follow,
+ &__follow-button--following {
+ text-align: center;
+ color: var(--colors-gray-800);
+ background-color: var(--colors-white);
+ border: 1px solid var(--colors-gray-800);
+ width: 100%;
+ @include dark-mode {
+ background-color: var(--colors-gray-100);
+ border: 1px solid var(--colors-gray-400);
+ }
+ }
+ }
+ }
+
+ .c-comment-input {
+ // Hide avatar on mobile for comment input
+ @include media("sm") {
+ .c-avatar {
+ display: none;
+ }
+ }
+ }
+
+ .c-comment-input-card {
+ flex-grow: 1;
+ background-color: var(--colors-white);
+ @include dark-mode {
+ background-color: var(--colors-gray-200);
+ }
+ border-radius: get("border.radius.xlarge");
+ padding: spacing(6);
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
+ }
+
+ .c-response-details {
+ &__card {
+ flex-grow: 1;
++ background-color: var(--colors-blue-50);
++ @include dark-mode {
++ background-color: var(--colors-gray-200);
++ }
+ border-radius: get("border.radius.xlarge");
- padding: spacing(4);
- border-width: 2px;
- }
-
- &__header {
- margin-bottom: spacing(3);
++ padding: spacing(6);
++ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
+ }
+
+ &__content {
+ color: var(--colors-gray-800);
+ line-height: 1.6;
}
}
diff --cc public/pages/ShowPost/ShowPost.page.tsx
index b6aebd40e,933351c97..ecbb18e3c
--- a/public/pages/ShowPost/ShowPost.page.tsx
+++ b/public/pages/ShowPost/ShowPost.page.tsx
@@@ -192,175 -189,174 +221,205 @@@ export default function ShowPostPage(pr
<Header />
<div id="p-show-post" className="page container">
<div className="p-show-post">
+ {/* Left Sidebar */}
+ <div className="p-show-post__action-col">
+ <VotesPanel post={props.post} votes={props.votes} />
+
+ <PoweredByFider slot="show-post" className="mt-3" />
+ </div>
+
<div className="p-show-post__main-col">
- <div className="p-show-post__header-col">
- <VStack spacing={8}>
- <HStack justify="between">
- <VStack align="start">
- {!editMode && (
- <HStack>
- <Avatar user={props.post.user} />
- <VStack spacing={1}>
- <UserName user={props.post.user} />
- <Moment className="text-muted" locale={Fider.currentLocale} date={props.post.createdAt} />
- </VStack>
- </HStack>
- )}
- </VStack>
- <RSSModal isOpen={isRSSModalOpen} onClose={hideRSSModal} url={`${fider.settings.baseURL}/feed/posts/${props.post.number}.atom`} />
-
- {!editMode && (
- <HStack>
- <Dropdown position="left" renderHandle={<Icon sprite={IconDotsHorizontal} width="24" height="24" />}>
- <Dropdown.ListItem onClick={onActionSelected("copy")} icon={IconDuplicate}>
- <Trans id="action.copylink">Copy link</Trans>
- </Dropdown.ListItem>
- {Fider.session.tenant.isFeedEnabled && (
- <Dropdown.ListItem onClick={onActionSelected("feed")} icon={IconRSS}>
- <Trans id="action.commentsfeed">Comment Feed</Trans>
- </Dropdown.ListItem>
- )}
- {Fider.session.isAuthenticated && canEditPost(Fider.session.user, props.post) && (
- <>
- <Dropdown.ListItem onClick={onActionSelected("edit")} icon={IconPencil}>
- <Trans id="action.edit">Edit</Trans>
- </Dropdown.ListItem>
- {Fider.session.user.isCollaborator && (
- <Dropdown.ListItem onClick={onActionSelected("status")} icon={IconChat}>
- <Trans id="action.respond">Respond</Trans>
- </Dropdown.ListItem>
- )}
- </>
- )}
- {canDeletePost() && (
- <Dropdown.ListItem onClick={onActionSelected("delete")} className="text-red-700" icon={IconX}>
- <Trans id="action.delete">Delete</Trans>
- </Dropdown.ListItem>
- )}
- </Dropdown>
- </HStack>
+ {/* Post Card */}
+ <div className="p-show-post__post-card">
+ {/* Title and Meta */}
+ <VStack spacing={4}>
+ {/* Title */}
+ {editMode ? (
+ <Form error={error}>
+ <Input field="title" maxLength={100} value={newTitle} onChange={setNewTitle} />
+ </Form>
+ ) : (
+ <h1 className="p-show-post__title">{props.post.title}</h1>
+ )}
+
+ {/* Posted by info with status */}
+ {!editMode && (
- <>
- <div className="p-show-post__meta">
- <PostMetaInfo post={props.post} locale={fider.currentLocale} />
- </div>
- <ResponseDetails status={props.post.status} response={props.post.response} />
- </>
++ <div className="p-show-post__meta">
++ <PostMetaInfo post={props.post} locale={fider.currentLocale} />
++ </div>
+ )}
+ </VStack>
+
++ {/* Moderation status banner for unapproved posts */}
++ {!editMode && fider.session.showModerationControls && !props.post.isApproved && (
++ <div>
++ {fider.session.isAuthenticated && fider.session.user.id === props.post.user.id && (
++ <div className="text-muted text-sm p-3 bg-yellow-50 rounded border-l-4 border-yellow-500">
++ <Trans id="showpost.moderation.awaiting">Awaiting moderation.</Trans>
++ </div>
+ )}
- </HStack>
+
- <div className="flex-grow">
- {editMode ? (
- <Form error={error}>
- <Input field="title" maxLength={100} value={newTitle} onChange={setNewTitle} />
- </Form>
- ) : (
- <>
- <h1 className="text-large text-break">{props.post.title}</h1>
-
- {/* Moderation status banner for unapproved posts */}
- {fider.session.showModerationControls && !props.post.isApproved && (
- <div className="mt-4">
- {fider.session.isAuthenticated && fider.session.user.id === props.post.user.id && (
- <div className="text-muted text-sm p-3 bg-yellow-50 rounded border-l-4 border-yellow-500">
- <Trans id="showpost.moderation.awaiting">Awaiting moderation.</Trans>
- </div>
- )}
-
- {/* Admin moderation buttons */}
- {fider.session.isAuthenticated && fider.session.user.isCollaborator && (
- <div className="p-3 bg-blue-50 rounded border-l-4 border-blue-500">
- <div className="mb-2 text-sm font-medium text-blue-800">
- <Trans id="showpost.moderation.admin.title">Moderation</Trans>
- </div>
- <div className="text-sm text-blue-700 mb-3">
- <Trans id="showpost.moderation.admin.description">This idea needs your approval before being published</Trans>
- </div>
- <HStack spacing={2}>
- <Button variant="primary" size="small" onClick={handleApprovePost}>
- <Trans id="action.publish">Publish</Trans>
- </Button>
- <Button variant="danger" size="small" onClick={handleDeclinePost}>
- <Trans id="action.delete">Delete</Trans>
- </Button>
- </HStack>
- </div>
- )}
- </div>
- )}
- </>
++ {/* Admin moderation buttons */}
++ {fider.session.isAuthenticated && fider.session.user.isCollaborator && (
++ <div className="p-3 bg-blue-50 rounded border-l-4 border-blue-500 mt-4">
++ <div className="mb-2 text-sm font-medium text-blue-800">
++ <Trans id="showpost.moderation.admin.title">Moderation</Trans>
++ </div>
++ <div className="text-sm text-blue-700 mb-3">
++ <Trans id="showpost.moderation.admin.description">This idea needs your approval before being published</Trans>
++ </div>
++ <HStack spacing={2}>
++ <Button variant="primary" size="small" onClick={handleApprovePost}>
++ <Trans id="action.publish">Publish</Trans>
++ </Button>
++ <Button variant="danger" size="small" onClick={handleDeclinePost}>
++ <Trans id="action.delete">Delete</Trans>
++ </Button>
++ </HStack>
++ </div>
+ )}
+ </div>
-
- <DeletePostModal onModalClose={() => setShowDeleteModal(false)} showModal={showDeleteModal} post={props.post} />
- {Fider.session.isAuthenticated && Fider.session.user.isCollaborator && (
- <ResponseModal onCloseModal={() => setShowResponseModal(false)} showModal={showResponseModal} post={props.post} />
- )}
- <VStack>
- {editMode ? (
- <Form error={error}>
- <CommentEditor
- field="description"
- onChange={handleDescriptionChange}
- initialValue={newDescription}
- disabled={false}
- maxAttachments={3}
- maxImageSizeKB={5 * 1024}
- placeholder={i18n._({
- id: "newpost.modal.description.placeholder",
- message: "Tell us about it. Explain it fully, don't hold back, the more information the better.",
- })}
- onImageUploaded={handleImageUploaded}
- onGetImageSrc={getImageSrc}
- />
- </Form>
- ) : (
- <>
- {props.post.description && <Markdown className="description" text={props.post.description} style="full" />}
- {!props.post.description && (
- <em className="text-muted">
- <Trans id="showpost.message.nodescription">No description provided.</Trans>
- </em>
- )}
- </>
++ )}
++
+ {/* Description - Full width */}
+ {!editMode ? (
+ <div className="p-show-post__description-section">
+ {props.post.description && <Markdown className="p-show-post__description" text={props.post.description} style="full" />}
+ {!props.post.description && (
+ <em className="text-muted">
+ <Trans id="showpost.message.nodescription">No description provided.</Trans>
+ </em>
)}
- </VStack>
- <div className="mt-2">
+ </div>
+ ) : (
+ <div className="p-show-post__description-section">
+ <Form error={error}>
+ <CommentEditor
+ field="description"
+ onChange={handleDescriptionChange}
+ initialValue={newDescription}
+ disabled={false}
+ maxAttachments={3}
+ maxImageSizeKB={5 * 1024}
+ placeholder={i18n._({
+ id: "newpost.modal.description.placeholder",
+ message: "Tell us about it. Explain it fully, don't hold back, the more information the better.",
+ })}
+ onImageUploaded={handleImageUploaded}
+ onGetImageSrc={getImageSrc}
+ />
+ </Form>
+ </div>
+ )}
+
+ {props.tags.length >= 1 && (
+ <div className="pt-7">
<TagsPanel post={props.post} tags={props.tags} />
</div>
+ )}
- <VStack spacing={4}>
- {!editMode ? (
- <HStack justify="between" align="start">
- <VoteSection post={props.post} votes={props.post.votesCount} />
- <FollowButton post={props.post} subscribed={props.subscribed} />
- </HStack>
- ) : (
- <HStack>
- <Button variant="primary" onClick={saveChanges} disabled={Fider.isReadOnly}>
- <Icon sprite={IconThumbsUp} />{" "}
- <span>
- <Trans id="action.save">Save</Trans>
- </span>
- </Button>
- <Button onClick={cancelEdit} disabled={Fider.isReadOnly}>
- <Icon sprite={IconX} />
- <span>
- <Trans id="action.cancel">Cancel</Trans>
- </span>
- </Button>
- </HStack>
- )}
- <div className="border-4 border-blue-500" />
- </VStack>
+ {/* Vote Section */}
+ {!editMode && (
+ <div className="p-show-post__vote-section">
+ <VoteSection post={props.post} votes={props.post.votesCount} />
+ </div>
+ )}
+
+ {/* Edit Mode Actions */}
+ {editMode && (
+ <HStack className="mt-6">
+ <Button variant="primary" onClick={saveChanges} disabled={Fider.isReadOnly}>
+ <Icon sprite={IconThumbsUp} />{" "}
+ <span>
+ <Trans id="action.save">Save</Trans>
+ </span>
+ </Button>
+ <Button onClick={cancelEdit} disabled={Fider.isReadOnly}>
+ <Icon sprite={IconX} />
+ <span>
+ <Trans id="action.cancel">Cancel</Trans>
+ </span>
+ </Button>
+ </HStack>
+ )}
+
+ {/* Bottom Action Bar */}
+ {!editMode && (
+ <div className="p-show-post__actions">
+ <HStack spacing={0} align="center" className="flex-wrap gap-2">
+ <ActionButton icon={IconDuplicate} onClick={onActionSelected("copy")}>
+ <Trans id="action.copylink">Copy link</Trans>
+ </ActionButton>
+
+ {Fider.session.isAuthenticated && canEditPost(Fider.session.user, props.post) && (
+ <ActionButton icon={IconPencil} onClick={onActionSelected("edit")}>
+ <Trans id="action.edit">Edit</Trans>
+ </ActionButton>
+ )}
- <ResponseDetails status={props.post.status} response={props.post.response} />
- </VStack>
+ {Fider.session.isAuthenticated && Fider.session.user.isCollaborator && (
+ <ActionButton icon={IconChat} onClick={onActionSelected("status")}>
+ <Trans id="action.respond">Respond</Trans>
+ </ActionButton>
+ )}
+
+ {Fider.session.tenant.isFeedEnabled && (
+ <ActionButton icon={IconRSS} onClick={onActionSelected("feed")}>
+ <Trans id="action.commentsfeed">Comment Feed</Trans>
+ </ActionButton>
+ )}
+
+ {canDeletePost() && (
+ <ActionButton icon={IconTrash} onClick={onActionSelected("delete")} variant="danger">
+ <Trans id="action.delete">Delete</Trans>
+ </ActionButton>
+ )}
+
+ <div className="flex-grow" />
+
+ <FollowButton post={props.post} subscribed={props.subscribed} />
+ </HStack>
+ </div>
+ )}
</div>
- <div className="p-show-post__discussion_col">
- <DiscussionPanel post={props.post} comments={props.comments} highlightedComment={highlightedComment} />
+ {/* Discussion Section */}
+ <div className="p-show-post__discussion-section">
+ {/* Discussion Header */}
- <HStack className="p-show-post__discussion-header" align="center" spacing={4}>
++ <HStack className="p-show-post__discussion-header mt-7" align="center" spacing={4}>
+ <h2 className="text-xl text-bold text-gray-900">
+ <span className="text-bold">
+ <Trans id="label.discussion">Discussion</Trans>
+ </span>
+ </h2>
+ <div className="p-show-post__discussion-count">{props.comments.length}</div>
+ </HStack>
+
+ {/* Comment Input at top */}
+ <CommentInput post={props.post} />
+
++ {/* Response Details - First discussion item */}
++ {props.post.response && <ResponseDetails status={props.post.status} response={props.post.response} />}
++
+ {/* Comments List */}
+ {props.comments.length > 0 && (
+ <VStack spacing={4}>
+ {props.comments.map((c) => (
+ <ShowComment key={c.id} post={props.post} comment={c} highlighted={highlightedComment === c.id} />
+ ))}
+ </VStack>
+ )}
</div>
</div>
- <div className="p-show-post__action-col">
- <VotesPanel post={props.post} votes={props.votes} />
- <PoweredByFider slot="show-post" className="mt-3" />
- </div>
</div>
</div>
+
+ {/* Modals */}
+ <RSSModal isOpen={isRSSModalOpen} onClose={hideRSSModal} url={`${fider.settings.baseURL}/feed/posts/${props.post.number}.atom`} />
+ <DeletePostModal onModalClose={() => setShowDeleteModal(false)} showModal={showDeleteModal} post={props.post} />
+ {Fider.session.isAuthenticated && Fider.session.user.isCollaborator && (
+ <ResponseModal onCloseModal={() => setShowResponseModal(false)} showModal={showResponseModal} post={props.post} />
+ )}
</>
)
}
diff --cc public/pages/ShowPost/components/CommentInput.tsx
index 96fe2a787,7d8ae1cb2..47aee84e5
--- a/public/pages/ShowPost/components/CommentInput.tsx
+++ b/public/pages/ShowPost/components/CommentInput.tsx
@@@ -106,8 -97,8 +100,8 @@@ export const CommentInput = (props: Com
{hasContent && (
<>
- <Button variant="primary" onClick={submit} className="mt-2">
- <Trans id="action.submit">Submit</Trans>
- <Button variant="primary" onClick={submit} className="mt-4">
- <Trans id="action.postcomment">Post Comment</Trans>
++ <Button disabled={!fider.session.isAuthenticated} variant="primary" onClick={submit} className="mt-4">
++ <Trans id="action.postcomment">Post</Trans>
</Button>
</>
)}