Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
walint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hub
walint
Commits
c4b4eb91
Commit
c4b4eb91
authored
3 years ago
by
stuebinm
Browse files
Options
Downloads
Patches
Plain Diff
server: add a howto link
parent
82082e8b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config.toml
+1
-0
1 addition, 0 deletions
config.toml
server/HtmlOrphans.hs
+4
-2
4 additions, 2 deletions
server/HtmlOrphans.hs
server/Server.hs
+2
-0
2 additions, 0 deletions
server/Server.hs
static/style.css
+1
-1
1 addition, 1 deletion
static/style.css
with
8 additions
and
3 deletions
config.toml
+
1
−
0
View file @
c4b4eb91
...
...
@@ -27,6 +27,7 @@ generation = 1
backlink_prefix
=
"world://lobby#start_"
contact_mail
=
"world@muc.hacc.space"
howto_link
=
"https://di.c3voc.de/howto:world"
# linter's config for this org
lintconfig
=
"./config.json"
...
...
This diff is collapsed.
Click to expand it.
server/HtmlOrphans.hs
+
4
−
2
View file @
c4b4eb91
...
...
@@ -31,7 +31,7 @@ import Lucid.Html5 (a_, body_, button_, class_, code_, disabled_,
onclick_
,
p_
,
rel_
,
script_
,
span_
,
src_
,
title_
,
type_
,
ul_
)
import
Server
(
JobStatus
(
..
),
Org
(
Org
,
orgBacklinkPrefix
,
orgContactMail
,
orgSlug
),
Org
(
Org
,
orgBacklinkPrefix
,
orgContactMail
,
orgHowtoLink
,
orgSlug
),
RemoteRef
(
RemoteRef
,
reponame
,
reporef
,
repourl
),
prettySha
,
unState
)
import
Types
(
Hint
(
Hint
),
Level
(
..
))
...
...
@@ -61,7 +61,9 @@ instance ToHtml (Org True, RemoteRef, JobStatus, Maybe JobStatus) where
"Linter Result"
if
pending
then
button_
[
class_
"btn btn-primary btn-disabled"
,
disabled_
"true"
]
"pending …"
else
button_
[
onclick_
"relint()"
,
class_
"btn btn-primary"
,
id_
"relint_button"
]
"relint now"
else
button_
[
onclick_
"relint()"
,
class_
"btn btn-primary"
,
id_
"relint_button"
]
"Relint"
whenJust
orgHowtoLink
$
\
link
->
a_
[
class_
"btn btn-primary"
,
href_
link
]
"Howto"
a_
[
class_
"btn btn-primary"
,
href_
(
"mailto:"
<>
orgContactMail
<>
"?subject=[Help-walint] "
<>
reponame
<>
" "
<>
rev
)]
"Help?"
...
...
This diff is collapsed.
Click to expand it.
server/Server.hs
+
2
−
0
View file @
c4b4eb91
...
...
@@ -101,6 +101,7 @@ data Org (loaded :: Bool) = Org
,
orgWebdir
::
Text
,
orgBacklinkPrefix
::
Text
,
orgContactMail
::
Text
,
orgHowtoLink
::
Maybe
Text
}
deriving
(
Generic
)
instance
NFData
(
LintConfig
Skeleton
)
=>
NFData
(
Org
True
)
...
...
@@ -164,6 +165,7 @@ orgCodec = Org
<*>
T
.
text
"webdir"
.=
orgWebdir
<*>
T
.
text
"backlink_prefix"
.=
orgBacklinkPrefix
<*>
T
.
text
"contact_mail"
.=
orgContactMail
<*>
coerce
(
T
.
first
T
.
text
"howto_link"
)
.=
orgHowtoLink
-- why exactly does everything in tomland need to be invertable
urlBimap
::
TomlBiMap
BaseUrl
String
...
...
This diff is collapsed.
Click to expand it.
static/style.css
+
1
−
1
View file @
c4b4eb91
...
...
@@ -16,7 +16,7 @@ body {
}
.btn
{
margin-left
:
2
em
;
margin-left
:
1
em
;
font-family
:
Ubuntu
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment