Skip to content

Commit 7ce6afa

Browse files
committed
disable trial for GoPhish
1 parent aa73782 commit 7ce6afa

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

content/fully-managed-open-source-services/development/dev-tools/gophish.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
draft: false
3+
disable_trial: true
34
title: Gophish fully managed open source service | OctaByte.io
45
meta:
56
cover: /images/development/dev-tools/gophish/screenshot-1.png

layouts/_default/single.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,22 @@ <h1 class="text-xl font-extrabold">
2525
<h2 class="text-xl mt-9">{{ .Params.content.title }}</h2>
2626

2727
<div class="flex items-center justify-start gap-3 my-5 flex-wrap">
28-
<a
29-
href="/start-trial?service_id={{ .Params.content.id }}&service_name={{ .Params.content.name }}"
30-
class="rounded-md isolate bg-gradient-to-r from-[#ff80b5] to-[#9089fc] px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2">
31-
Start Free Trial
32-
</a>
28+
{{ if .Params.disable_trial }}
29+
<div class="relative">
30+
<button
31+
class="rounded-md isolate bg-gray-400 cursor-not-allowed px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm"
32+
title="Temporarily trial is disabled for this service">
33+
Start Free Trial
34+
</button>
35+
</div>
36+
{{ else }}
37+
<a
38+
href="/start-trial?service_id={{ .Params.content.id }}&service_name={{ .Params.content.name }}"
39+
class="rounded-md isolate bg-gradient-to-r from-[#ff80b5] to-[#9089fc] px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2">
40+
Start Free Trial
41+
</a>
42+
{{ end }}
43+
3344

3445
<a
3546
href="{{ $url }}"

0 commit comments

Comments
 (0)