From 2760a4524624762df65d3ec7dc36eda068adc4c5 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 15 May 2026 11:15:34 +0300 Subject: [PATCH] open_source.html; move strings to translations --- gitly.v | 5 ++ static/assets/version | 2 +- templates/index.html | 128 +++++++++++++-------------- templates/open_source.html | 42 +++++++++ translations/en.tr | 171 ++++++++++++++++++++++++++++++++++++- translations/ru.tr | 169 ++++++++++++++++++++++++++++++++++++ 6 files changed, 449 insertions(+), 68 deletions(-) create mode 100644 templates/open_source.html diff --git a/gitly.v b/gitly.v index 0b9ddd5..4c314d4 100644 --- a/gitly.v +++ b/gitly.v @@ -166,6 +166,11 @@ pub fn (mut app App) before_request(mut ctx Context) bool { return true } +@['/open-source'] +pub fn (mut app App) open_source() veb.Result { + return $veb.html() +} + @['/'] pub fn (mut app App) index() veb.Result { user_count := app.get_users_count() or { 0 } diff --git a/static/assets/version b/static/assets/version index 0552b3c..5d7d7da 100644 --- a/static/assets/version +++ b/static/assets/version @@ -1 +1 @@ -053d743 \ No newline at end of file +bca90b1 \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index a38479b..f0c8287 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,27 +8,27 @@
-

Gitly is an upcoming open-source development platform that is going to have

+

%index_intro

    -
  • Source code hosting
  • -
  • Project management
  • -
  • CI & CD
  • +
  • %index_source_hosting
  • +
  • %index_project_management
  • +
  • %index_ci_cd
-

Main features:

+

%index_main_features

    -
  • Light and fast
  • -
  • Minimal amount of RAM usage (works great on the cheapest $3.5 AWS Lightsail instance)
  • -
  • Easy to deploy (a single <1 MB binary that includes compiled templates)
  • -
  • Works without JavaScript
  • -
  • Detailed language stats for each directory
  • -
  • "Top files" feature to give an overview of the project
  • -
  • Very fast CI with pre-cached dependencies
  • -
  • Submitting a pull request without forking the repository
  • +
  • %index_feature_light_fast
  • +
  • %index_feature_minimal_ram
  • +
  • %index_feature_easy_deploy
  • +
  • %index_feature_no_js
  • +
  • %index_feature_lang_stats
  • +
  • %index_feature_top_files
  • +
  • %index_feature_fast_ci
  • +
  • %index_feature_pr_no_fork
@@ -41,115 +41,115 @@ Gitly - Open source - No - Yes - Yes + %index_open_source + %index_no + %index_yes + %index_yes - All features are open source - No - No - Yes + %index_all_open_source + %index_no + %index_no [*] + %index_yes - Minimum RAM + %index_min_ram 32 GB [0] 4 GB [1] 128 MB - Cheapest server + %index_cheapest_server $160 $20 $3.50[2] - Works without JS - Partially - No - Yes + %index_works_no_js + %index_partially + %index_no + %index_yes - Detailed language stats - No - No - Yes + %index_detailed_lang_stats + %index_no + %index_no + %index_yes - Installation size + %index_install_size ? 3.9 GB [3] <1 MB - Time to load vlang/v repo main page + %index_load_time 3s 2s 0.3s - CI features + %index_ci_features_header - # CPU cores + %index_cpu_cores 2 1 4 - 8 FreeBSD - No - No - Yes + %index_no + %index_no + %index_yes macOS - Yes - No - Yes + %index_yes + %index_no + %index_yes - Built-in dependency cache - No - No - Yes + %index_dep_cache + %index_no + %index_no + %index_yes - A separate instance with an option to SSH to - No - No - Yes + %index_separate_instance + %index_no + %index_no + %index_yes - Instant start on commit/PR - No - No - Yes + %index_instant_start + %index_no + %index_no + %index_yes - An easy way to stop entire CI run (manually or on new commit/PR/force push) - No - No - Yes + %index_stop_ci + %index_no + %index_no + %index_yes - CI logs storage time - 3 months - 3 months - 6 months + %index_logs_storage_time + %index_three_months + %index_three_months + %index_six_months - CI minutes in a basic package + %index_basic_ci_minutes 3000[4] 10000[5] 43200 - Price per user per month + %index_price_per_user $4 $29 $5 @@ -158,7 +158,7 @@
- Check out Gitly in action by browsing the V language repo: + %index_check_action gitly.org/vlang/v diff --git a/templates/open_source.html b/templates/open_source.html new file mode 100644 index 0000000..83b5e1f --- /dev/null +++ b/templates/open_source.html @@ -0,0 +1,42 @@ + + + + @include 'layout/head.html' + + + @include 'layout/header.html' + +
+
+

%open_source_title

+ +

%open_source_intro

+ +

%open_source_ee_only_title

+ +
    +
  • %open_source_feat_advanced_search
  • +
  • %open_source_feat_mr_approvals
  • +
  • %open_source_feat_security_scanning
  • +
  • %open_source_feat_dependency_scanning
  • +
  • %open_source_feat_compliance
  • +
  • %open_source_feat_audit_events
  • +
  • %open_source_feat_epics
  • +
  • %open_source_feat_roadmaps
  • +
  • %open_source_feat_portfolio
  • +
  • %open_source_feat_protected_envs
  • +
  • %open_source_feat_geo
  • +
  • %open_source_feat_dr
  • +
  • %open_source_feat_group_saml
  • +
  • %open_source_feat_ldap_sync
  • +
  • %open_source_feat_push_rules
  • +
  • %open_source_feat_insights
  • +
+ +

%raw open_source_outro

+
+
+ + @include 'layout/footer.html' + + diff --git a/translations/en.tr b/translations/en.tr index 631ba33..efdb337 100644 --- a/translations/en.tr +++ b/translations/en.tr @@ -26,7 +26,172 @@ Password email Email ----- - - - +index_intro +Gitly is an open-source development platform that has the following features +----- +index_source_hosting +Source code hosting +----- +index_project_management +Project management +----- +index_ci_cd +CI & CD +----- +index_main_features +Main features: +----- +index_feature_light_fast +Light and fast +----- +index_feature_minimal_ram +Minimal amount of RAM usage (works great on the cheapest $3.5 AWS Lightsail instance) +----- +index_feature_easy_deploy +Easy to deploy (a single <1 MB binary that includes compiled templates) +----- +index_feature_no_js +Works without JavaScript +----- +index_feature_lang_stats +Detailed language stats for each directory +----- +index_feature_top_files +"Top files" feature to give an overview of the project +----- +index_feature_fast_ci +Very fast CI with pre-cached dependencies +----- +index_feature_pr_no_fork +Submitting a pull request without forking the repository +----- +index_open_source +Open source +----- +index_all_open_source +All features are open source +----- +index_min_ram +Minimum RAM +----- +index_cheapest_server +Cheapest server +----- +index_works_no_js +Works without JS +----- +index_detailed_lang_stats +Detailed language stats +----- +index_install_size +Installation size +----- +index_load_time +Time to load vlang/v repo main page +----- +index_ci_features_header +CI features +----- +index_cpu_cores +# CPU cores +----- +index_dep_cache +Built-in dependency cache +----- +index_separate_instance +A separate instance with an option to SSH to +----- +index_instant_start +Instant start on commit/PR +----- +index_stop_ci +An easy way to stop entire CI run (manually or on new commit/PR/force push) +----- +index_logs_storage_time +CI logs storage time +----- +index_basic_ci_minutes +CI minutes in a basic package +----- +index_price_per_user +Price per user per month +----- +index_yes +Yes +----- +index_no +No +----- +index_partially +Partially +----- +index_three_months +3 months +----- +index_six_months +6 months +----- +index_check_action +Check out Gitly in action by browsing the V language repo: +----- +open_source_title +What GitLab features are not open source +----- +open_source_intro +GitLab is often presented as the open-source alternative to GitHub. In reality, only the Community Edition (CE) is open source under the MIT license. Most of the features GitLab actually advertises and sells live in the proprietary Enterprise Edition (EE), which is released under a non-free source-available license. If you self-host the free CE, you do not get them. +----- +open_source_ee_only_title +A non-exhaustive list of EE-only (proprietary) features: +----- +open_source_feat_advanced_search +Advanced search (Elasticsearch-powered code search across projects) +----- +open_source_feat_mr_approvals +Multiple merge request approval rules and required approvers +----- +open_source_feat_security_scanning +SAST, DAST, container scanning and secret detection +----- +open_source_feat_dependency_scanning +Dependency scanning and license compliance +----- +open_source_feat_compliance +Compliance frameworks and compliance dashboards +----- +open_source_feat_audit_events +Full audit events and audit reports +----- +open_source_feat_epics +Epics and multi-level epics +----- +open_source_feat_roadmaps +Roadmaps and milestone planning views +----- +open_source_feat_portfolio +Portfolio and value stream analytics +----- +open_source_feat_protected_envs +Protected environments and deployment approvals +----- +open_source_feat_geo +Geo replication across multiple regions +----- +open_source_feat_dr +Disaster recovery +----- +open_source_feat_group_saml +Group-level SAML SSO and SCIM provisioning +----- +open_source_feat_ldap_sync +LDAP group sync and Kerberos integration +----- +open_source_feat_push_rules +Push rules and required pipeline configurations +----- +open_source_feat_insights +Insights, value stream dashboards and DORA metrics +----- +open_source_outro +Gitly takes a different approach: every feature is part of the same open-source codebase. There is no Enterprise Edition, no paywalled module, and no separate "premium" repository. +----- diff --git a/translations/ru.tr b/translations/ru.tr index 0173007..e169129 100644 --- a/translations/ru.tr +++ b/translations/ru.tr @@ -26,3 +26,172 @@ password email Электронная почта ----- +index_intro +Gitly — это платформа для разработки с открытым исходным кодом: +----- +index_source_hosting +Хостинг исходного кода +----- +index_project_management +Управление проектами +----- +index_ci_cd +CI и CD +----- +index_main_features +Основные возможности: +----- +index_feature_light_fast +Лёгкий и быстрый +----- +index_feature_minimal_ram +Минимальный расход оперативной памяти (отлично работает на самом дешёвом инстансе AWS Lightsail за $3.5) +----- +index_feature_easy_deploy +Простое развёртывание (один бинарник <1 МБ со встроенными шаблонами) +----- +index_feature_no_js +Работает без JavaScript +----- +index_feature_lang_stats +Подробная статистика языков для каждой директории +----- +index_feature_top_files +Функция «Top files» для обзора проекта +----- +index_feature_fast_ci +Очень быстрый CI с предварительно закешированными зависимостями +----- +index_feature_pr_no_fork +Отправка pull request без форка репозитория +----- +index_open_source +Открытый исходный код +----- +index_all_open_source +Все возможности с открытым исходным кодом +----- +index_min_ram +Минимум RAM +----- +index_cheapest_server +Самый дешёвый сервер +----- +index_works_no_js +Работает без JS +----- +index_detailed_lang_stats +Подробная статистика языков +----- +index_install_size +Размер установки +----- +index_load_time +Время загрузки главной страницы репозитория vlang/v +----- +index_ci_features_header +Возможности CI +----- +index_cpu_cores +Кол-во ядер CPU +----- +index_dep_cache +Встроенный кеш зависимостей +----- +index_separate_instance +Отдельный инстанс с возможностью подключения по SSH +----- +index_instant_start +Мгновенный запуск при коммите/PR +----- +index_stop_ci +Простой способ остановить весь запуск CI (вручную или при новом коммите/PR/force push) +----- +index_logs_storage_time +Срок хранения логов CI +----- +index_basic_ci_minutes +Минут CI в базовом тарифе +----- +index_price_per_user +Цена за пользователя в месяц +----- +index_yes +Да +----- +index_no +Нет +----- +index_partially +Частично +----- +index_three_months +3 месяца +----- +index_six_months +6 месяцев +----- +index_check_action +Посмотрите Gitly в действии — откройте репозиторий языка V: +----- +open_source_title +Какие функции GitLab не являются открытым исходным кодом +----- +open_source_intro +GitLab часто представляют как альтернативу GitHub с открытым исходным кодом. На самом деле под лицензией MIT распространяется только Community Edition (CE). Большинство функций, которые GitLab активно рекламирует и продаёт, находятся в проприетарной Enterprise Edition (EE), распространяемой под несвободной source-available лицензией. Если вы развернули у себя бесплатную CE, этих функций у вас нет. +----- +open_source_ee_only_title +Неполный список функций, доступных только в EE (проприетарных): +----- +open_source_feat_advanced_search +Расширенный поиск (поиск по коду между проектами на базе Elasticsearch) +----- +open_source_feat_mr_approvals +Несколько правил подтверждения merge request и обязательные ревьюеры +----- +open_source_feat_security_scanning +SAST, DAST, сканирование контейнеров и поиск секретов +----- +open_source_feat_dependency_scanning +Сканирование зависимостей и проверка лицензий +----- +open_source_feat_compliance +Compliance-фреймворки и панели соответствия +----- +open_source_feat_audit_events +Полные журналы аудита и отчёты аудита +----- +open_source_feat_epics +Эпики и многоуровневые эпики +----- +open_source_feat_roadmaps +Дорожные карты и представления планирования по вехам +----- +open_source_feat_portfolio +Портфельная аналитика и аналитика value stream +----- +open_source_feat_protected_envs +Защищённые окружения и подтверждения деплоев +----- +open_source_feat_geo +Geo-репликация между несколькими регионами +----- +open_source_feat_dr +Аварийное восстановление (Disaster Recovery) +----- +open_source_feat_group_saml +SAML SSO и SCIM-провижининг на уровне групп +----- +open_source_feat_ldap_sync +Синхронизация групп LDAP и интеграция с Kerberos +----- +open_source_feat_push_rules +Push-правила и обязательные конфигурации пайплайнов +----- +open_source_feat_insights +Insights, дашборды value stream и метрики DORA +----- +open_source_outro +В Gitly другой подход: каждая функция — часть общей кодовой базы с открытым исходным кодом. Нет Enterprise Edition, нет платных модулей и нет отдельного «premium»-репозитория. +----- + -- 2.39.5