2016-04-12 19:05:43 +09:00
|
|
|
$# This file is part of Vervis.
|
|
|
|
$#
|
2020-08-17 22:46:27 +09:00
|
|
|
$# Written in 2016, 2018, 2019, 2020 by fr33domlover <fr33domlover@riseup.net>.
|
2016-04-12 19:05:43 +09:00
|
|
|
$#
|
|
|
|
$# ♡ Copying is an act of love. Please copy, reuse and share.
|
|
|
|
$#
|
|
|
|
$# The author(s) have dedicated all copyright and related and neighboring
|
|
|
|
$# rights to this software to the public domain worldwide. This software is
|
|
|
|
$# distributed without any warranty.
|
|
|
|
$#
|
|
|
|
$# You should have received a copy of the CC0 Public Domain Dedication along
|
|
|
|
$# with this software. If not, see
|
|
|
|
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
|
|
|
2019-12-29 01:34:44 +09:00
|
|
|
$maybe (s, j, w, sw) <- mproject
|
2019-12-28 05:44:14 +09:00
|
|
|
<p>
|
|
|
|
Belongs to project
|
|
|
|
<a href=@{ProjectR (sharerIdent s) (projectIdent j)}>
|
|
|
|
$maybe name <- projectName j
|
|
|
|
#{name}
|
|
|
|
$nothing
|
|
|
|
#{prj2text $ projectIdent j}
|
|
|
|
|
2019-12-29 01:34:44 +09:00
|
|
|
^{personNavW $ sharerIdent s}
|
|
|
|
|
|
|
|
^{projectNavW j w sw (sharerIdent s) (projectIdent j)}
|
|
|
|
|
2016-04-13 08:38:21 +09:00
|
|
|
$maybe desc <- repoDesc repository
|
|
|
|
<p>#{desc}
|
|
|
|
|
2019-12-29 01:34:44 +09:00
|
|
|
^{personNavW user}
|
|
|
|
|
2019-10-19 19:13:33 +09:00
|
|
|
<div>
|
2019-12-29 01:34:44 +09:00
|
|
|
<span>
|
|
|
|
[[ 🗃
|
|
|
|
<a href=@{RepoR user repo}>
|
|
|
|
#{rp2text repo}
|
|
|
|
]] ::
|
2019-10-19 19:13:33 +09:00
|
|
|
<span>
|
|
|
|
<a href=@{RepoInboxR user repo}>
|
|
|
|
[📥 Inbox]
|
|
|
|
<span>
|
|
|
|
<a href=@{RepoOutboxR user repo}>
|
|
|
|
[📤 Outbox]
|
|
|
|
<span>
|
|
|
|
<a href=@{RepoFollowersR user repo}>
|
|
|
|
[🐤 Followers]
|
|
|
|
<span>
|
|
|
|
<a href=@{RepoDevsR user repo}>
|
|
|
|
[🤝 Collaborators]
|
|
|
|
<span>
|
|
|
|
<a href=@{RepoHeadChangesR user repo}>
|
|
|
|
[🛠 Changes]
|
2020-08-17 22:46:27 +09:00
|
|
|
<span>
|
|
|
|
<a href=@{RepoProposalsR user repo}>
|
|
|
|
[🧩 Patches]
|
2016-04-13 08:38:21 +09:00
|
|
|
|
2019-10-19 19:13:33 +09:00
|
|
|
^{followButton}
|
2016-05-05 02:17:47 +09:00
|
|
|
|
2016-04-12 19:05:43 +09:00
|
|
|
<h2>Tags
|
2016-05-05 02:17:47 +09:00
|
|
|
|
2016-05-05 16:29:19 +09:00
|
|
|
<p>TODO
|
2016-04-12 19:05:43 +09:00
|
|
|
|
2016-05-05 02:17:47 +09:00
|
|
|
<div>
|
|
|
|
$forall (piece, piecePath) <- dirs
|
2016-05-05 16:29:19 +09:00
|
|
|
<a href=@{RepoSourceR user repo piecePath}>#{piece}
|
2016-05-05 02:17:47 +09:00
|
|
|
/ #
|
|
|
|
|
|
|
|
$case sv
|
2016-05-05 16:29:19 +09:00
|
|
|
$of SourceFile (FileView name body)
|
2016-05-05 02:17:47 +09:00
|
|
|
<h2>#{name}
|
|
|
|
^{body}
|
2016-05-05 16:29:19 +09:00
|
|
|
$of SourceDir (DirectoryView mname ents mreadme)
|
2016-05-05 02:17:47 +09:00
|
|
|
<h2>#{fromMaybe "Files" mname}
|
2018-11-01 18:45:48 +09:00
|
|
|
$if null ents
|
|
|
|
<p>No files!
|
|
|
|
$else
|
|
|
|
<table>
|
|
|
|
$forall DirEntry type' name <- ents
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
$case type'
|
|
|
|
$of TypeBlob
|
|
|
|
🗎
|
|
|
|
$of TypeTree
|
|
|
|
🗀
|
|
|
|
<td>
|
|
|
|
<a href=@{RepoSourceR user repo (dir ++ [name])}>
|
|
|
|
#{name}
|
2016-04-14 01:17:34 +09:00
|
|
|
$maybe (readmeName, readmeWidget) <- mreadme
|
|
|
|
<h2>#{readmeName}
|
|
|
|
^{readmeWidget}
|
2019-10-19 19:13:33 +09:00
|
|
|
|
2019-10-23 16:43:40 +09:00
|
|
|
<div>
|
|
|
|
^{buttonW DELETE "Delete this repo" (RepoR user repo)}
|
|
|
|
|
2019-10-19 19:13:33 +09:00
|
|
|
<div>
|
|
|
|
<a href=@?{(RepoR user repo, [("prettyjson","true")])}>
|
|
|
|
[See repo JSON]
|