mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
f9fbd49ea7
commit
2db84a6020
|
@ -505,7 +505,8 @@ repoBlob lww co tree BlobInfo{..} = do
|
||||||
repoPage :: (DashBoardPerks m, MonadReader DashBoardEnv m) => RepoListItem -> HtmlT m ()
|
repoPage :: (DashBoardPerks m, MonadReader DashBoardEnv m) => RepoListItem -> HtmlT m ()
|
||||||
repoPage it@RepoListItem{..} = rootPage do
|
repoPage it@RepoListItem{..} = rootPage do
|
||||||
|
|
||||||
let repo = show $ pretty rlRepoLww
|
let lww = rlRepoLww & coerce
|
||||||
|
let repo = show $ pretty lww
|
||||||
|
|
||||||
sto <- asks _sto
|
sto <- asks _sto
|
||||||
mhead <- lift $ readRepoHeadFromTx sto (coerce rlRepoTx)
|
mhead <- lift $ readRepoHeadFromTx sto (coerce rlRepoTx)
|
||||||
|
@ -551,19 +552,20 @@ repoPage it@RepoListItem{..} = rootPage do
|
||||||
repoMenu do
|
repoMenu do
|
||||||
repoMenuItem mempty $ a_ [href_ "/"] "root"
|
repoMenuItem mempty $ a_ [href_ "/"] "root"
|
||||||
|
|
||||||
repoMenuItem0 [ hxGet_ (path ["repo", repo, "manifest"])
|
repoMenuItem0 [ hxGet_ (path ["repo", repo, "commits"])
|
||||||
, hxTarget_ "#repo-tab-data"
|
|
||||||
] "manifest"
|
|
||||||
|
|
||||||
repoMenuItem [ hxGet_ (path ["repo", repo, "commits"])
|
|
||||||
, hxTarget_ "#repo-tab-data"
|
, hxTarget_ "#repo-tab-data"
|
||||||
] "commits"
|
] "commits"
|
||||||
|
|
||||||
|
repoMenuItem [ hxGet_ (path ["repo", repo, "manifest"])
|
||||||
|
, hxTarget_ "#repo-tab-data"
|
||||||
|
] "manifest"
|
||||||
|
|
||||||
repoMenuItem (showRefsHtmxAttribs repo) "tree"
|
repoMenuItem (showRefsHtmxAttribs repo) "tree"
|
||||||
|
|
||||||
section_ [id_ "repo-data"] do
|
section_ [id_ "repo-data"] do
|
||||||
h1_ (toHtml $ rlRepoName)
|
h1_ (toHtml $ rlRepoName)
|
||||||
|
|
||||||
div_ [id_ "repo-tab-data"] do
|
div_ [id_ "repo-tab-data"] do
|
||||||
toHtmlRaw (renderMarkdown' manifest)
|
let predicate = Right mempty
|
||||||
|
repoCommits lww predicate
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue