Skip to content

Commit 2760a45

Browse files
committed
open_source.html; move strings to translations
1 parent c21506f commit 2760a45

6 files changed

Lines changed: 449 additions & 68 deletions

File tree

gitly.v

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ pub fn (mut app App) before_request(mut ctx Context) bool {
166166
return true
167167
}
168168

169+
@['/open-source']
170+
pub fn (mut app App) open_source() veb.Result {
171+
return $veb.html()
172+
}
173+
169174
@['/']
170175
pub fn (mut app App) index() veb.Result {
171176
user_count := app.get_users_count() or { 0 }

static/assets/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
053d743
1+
bca90b1

templates/index.html

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88

99
<article>
1010
<div class="block">
11-
<h3>Gitly is an upcoming open-source development platform that is going to have</h3>
11+
<h3>%index_intro</h3>
1212

1313
<ul class="list">
14-
<li>Source code hosting</li>
15-
<li>Project management</li>
16-
<li>CI & CD</li>
14+
<li>%index_source_hosting</li>
15+
<li>%index_project_management</li>
16+
<li>%index_ci_cd</li>
1717
</ul>
1818
</div>
1919

2020
<div class="block">
21-
<h3>Main features:</h3>
21+
<h3>%index_main_features</h3>
2222

2323
<ul class="list">
24-
<li>Light and fast</li>
25-
<li>Minimal amount of RAM usage (works great on the cheapest $3.5 AWS Lightsail instance)</li>
26-
<li>Easy to deploy (a single <1 MB binary that includes compiled templates)</li>
27-
<li>Works without JavaScript</li>
28-
<li>Detailed language stats for each directory</li>
29-
<li>"Top files" feature to give an overview of the project</li>
30-
<li>Very fast CI with pre-cached dependencies</li>
31-
<li>Submitting a pull request without forking the repository</li>
24+
<li>%index_feature_light_fast</li>
25+
<li>%index_feature_minimal_ram</li>
26+
<li>%index_feature_easy_deploy</li>
27+
<li>%index_feature_no_js</li>
28+
<li>%index_feature_lang_stats</li>
29+
<li>%index_feature_top_files</li>
30+
<li>%index_feature_fast_ci</li>
31+
<li>%index_feature_pr_no_fork</li>
3232
</ul>
3333
</div>
3434

@@ -41,115 +41,115 @@ <h3>Main features:</h3>
4141
<td>Gitly</td>
4242
</tr>
4343
<tr>
44-
<td>Open source</td>
45-
<td>No</td>
46-
<td>Yes</td>
47-
<td>Yes</td>
44+
<td>%index_open_source</td>
45+
<td>%index_no</td>
46+
<td>%index_yes</td>
47+
<td>%index_yes</td>
4848
</tr>
4949
<tr>
50-
<td>All features are open source</td>
51-
<td>No</td>
52-
<td>No</td>
53-
<td>Yes</td>
50+
<td>%index_all_open_source</td>
51+
<td>%index_no</td>
52+
<td>%index_no <a href="/open-source">[*]</a></td>
53+
<td>%index_yes</td>
5454
</tr>
5555
<tr>
56-
<td>Minimum RAM</td>
56+
<td>%index_min_ram</td>
5757
<td>32 GB <a target="_blank" href="https://docs.github.com/en/enterprise-server/admin/installation/setting-up-a-github-enterprise-server-instance/installing-github-enterprise-server-on-aws#minimum-requirements">[0]</a></td>
5858
<td>4 GB <a target="_blank" href="https://docs.gitlab.com/ee/install/requirements.html#memory">[1]</a></td>
5959
<td>128 MB</td>
6060
</tr>
6161
<tr>
62-
<td>Cheapest server</td>
62+
<td>%index_cheapest_server</td>
6363
<td>$160</td>
6464
<td>$20</td>
6565
<td>$3.50<a target="_blank" href="https://aws.amazon.com/lightsail/pricing/">[2]</a></td>
6666
</tr>
6767
<tr>
68-
<td>Works without JS</td>
69-
<td>Partially</td>
70-
<td>No</td>
71-
<td>Yes</td>
68+
<td>%index_works_no_js</td>
69+
<td>%index_partially</td>
70+
<td>%index_no</td>
71+
<td>%index_yes</td>
7272
</tr>
7373
<tr>
74-
<td>Detailed language stats</td>
75-
<td>No</td>
76-
<td>No</td>
77-
<td>Yes</td>
74+
<td>%index_detailed_lang_stats</td>
75+
<td>%index_no</td>
76+
<td>%index_no</td>
77+
<td>%index_yes</td>
7878
</tr>
7979
<tr>
80-
<td>Installation size</td>
80+
<td>%index_install_size</td>
8181
<td>?</td>
8282
<td>3.9 GB <a target="_blank" href="https://gist.github.com/medvednikov/a90fba85e5e2703a7a6270f1adc50dad">[3]</a>
8383
</td>
8484
<td><1 MB</td>
8585
</tr>
8686
<tr>
87-
<td>Time to load vlang/v repo main page</td>
87+
<td>%index_load_time</td>
8888
<td>3s</td>
8989
<td>2s</td>
9090
<td>0.3s</td>
9191
</tr>
9292
<tr>
93-
<td style='text-align:center'><b>CI features</b></td>
93+
<td style='text-align:center'><b>%index_ci_features_header</b></td>
9494
<td></td>
9595
<td></td>
9696
<td></td>
9797
<tr>
98-
<td># CPU cores</td>
98+
<td>%index_cpu_cores</td>
9999
<td>2</td>
100100
<td>1</td>
101101
<td>4 - 8</td>
102102
</tr>
103103
<tr>
104104
<td>FreeBSD</td>
105-
<td>No</td>
106-
<td>No</td>
107-
<td>Yes</td>
105+
<td>%index_no</td>
106+
<td>%index_no</td>
107+
<td>%index_yes</td>
108108
</tr>
109109
<tr>
110110
<td>macOS</td>
111-
<td>Yes</td>
112-
<td>No</td>
113-
<td>Yes</td>
111+
<td>%index_yes</td>
112+
<td>%index_no</td>
113+
<td>%index_yes</td>
114114
</tr>
115115
<tr>
116-
<td>Built-in dependency cache</td>
117-
<td>No</td>
118-
<td>No</td>
119-
<td>Yes</td>
116+
<td>%index_dep_cache</td>
117+
<td>%index_no</td>
118+
<td>%index_no</td>
119+
<td>%index_yes</td>
120120
</tr>
121121
<tr>
122-
<td>A separate instance with an option to SSH to</td>
123-
<td>No</td>
124-
<td>No</td>
125-
<td>Yes</td>
122+
<td>%index_separate_instance</td>
123+
<td>%index_no</td>
124+
<td>%index_no</td>
125+
<td>%index_yes</td>
126126
</tr>
127127
<tr>
128-
<td>Instant start on commit/PR</td>
129-
<td>No</td>
130-
<td>No</td>
131-
<td>Yes</td>
128+
<td>%index_instant_start</td>
129+
<td>%index_no</td>
130+
<td>%index_no</td>
131+
<td>%index_yes</td>
132132
</tr>
133133
<tr>
134-
<td>An easy way to stop entire CI run (manually or on new commit/PR/force push)</td>
135-
<td>No</td>
136-
<td>No</td>
137-
<td>Yes</td>
134+
<td>%index_stop_ci</td>
135+
<td>%index_no</td>
136+
<td>%index_no</td>
137+
<td>%index_yes</td>
138138
</tr>
139139
<tr>
140-
<td>CI logs storage time</td>
141-
<td>3 months</td>
142-
<td>3 months</td>
143-
<td>6 months</td>
140+
<td>%index_logs_storage_time</td>
141+
<td>%index_three_months</td>
142+
<td>%index_three_months</td>
143+
<td>%index_six_months</td>
144144
</tr>
145145
<tr>
146-
<td>CI minutes in a basic package</td>
146+
<td>%index_basic_ci_minutes</td>
147147
<td>3000<a target="_blank" href="https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions">[4]</a></td>
148148
<td>10000<a target="_blank" href="https://about.gitlab.com/pricing/">[5]</a></td>
149149
<td>43200</td>
150150
</tr>
151151
<tr>
152-
<td>Price per user per month</td>
152+
<td>%index_price_per_user</td>
153153
<td>$4</td>
154154
<td>$29</a></td>
155155
<td>$5</td>
@@ -158,7 +158,7 @@ <h3>Main features:</h3>
158158
</div>
159159

160160
<div class="block">
161-
Check out Gitly in action by browsing the V language repo:
161+
%index_check_action
162162

163163
<a href="/alex/v">gitly.org/vlang/v</a>
164164

templates/open_source.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
@include 'layout/head.html'
5+
</head>
6+
<body>
7+
@include 'layout/header.html'
8+
9+
<article>
10+
<div class="block">
11+
<h1>%open_source_title</h1>
12+
13+
<p>%open_source_intro</p>
14+
15+
<h3>%open_source_ee_only_title</h3>
16+
17+
<ul class="list">
18+
<li>%open_source_feat_advanced_search</li>
19+
<li>%open_source_feat_mr_approvals</li>
20+
<li>%open_source_feat_security_scanning</li>
21+
<li>%open_source_feat_dependency_scanning</li>
22+
<li>%open_source_feat_compliance</li>
23+
<li>%open_source_feat_audit_events</li>
24+
<li>%open_source_feat_epics</li>
25+
<li>%open_source_feat_roadmaps</li>
26+
<li>%open_source_feat_portfolio</li>
27+
<li>%open_source_feat_protected_envs</li>
28+
<li>%open_source_feat_geo</li>
29+
<li>%open_source_feat_dr</li>
30+
<li>%open_source_feat_group_saml</li>
31+
<li>%open_source_feat_ldap_sync</li>
32+
<li>%open_source_feat_push_rules</li>
33+
<li>%open_source_feat_insights</li>
34+
</ul>
35+
36+
<p>%raw open_source_outro</p>
37+
</div>
38+
</article>
39+
40+
@include 'layout/footer.html'
41+
</body>
42+
</html>

0 commit comments

Comments
 (0)