Skip to content

Commit

Permalink
fix post links in inbox. fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jul 8, 2023
1 parent d907420 commit 1b5c6f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ summary {
.message b {
color: #000;
}
.dark .message b {
color: #ddd;
}
.dark .meta {
color: #b4b4b4;
}
Expand Down Expand Up @@ -544,6 +547,7 @@ form.nsfw div {
text-align: right;
}
.side {
display: none;
margin: 0 auto;
font-size: 12px;
width: 300px;
Expand All @@ -558,6 +562,7 @@ main {
}
@media (min-width: 900px) {
.side {
display: block;
position: absolute;
top: 0;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion templates/activities.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ if not $state.User }}
<b>comment</b> on
{{ end }}
<a href="../post/{{ $activity.Comment.P.Post.ID}}">{{ $activity.Comment.P.Post.Name}}</a>
<a href="/{{$state.Host}}/post/{{ $activity.Comment.P.Post.ID}}">{{ $activity.Comment.P.Post.Name}}</a>
{{ if $state.User}}
by
<a href="">{{$state.User.PersonView.Person.Name }}</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/frontpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<title>{{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
<link rel="stylesheet" href="/_/static/style.css?v=13">
<link rel="stylesheet" href="/_/static/style.css?v=14">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body {{ if .Dark }}class="dark"{{end}}>
Expand Down
2 changes: 1 addition & 1 deletion templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>{{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
<link rel="stylesheet" href="/_/static/style.css?v=13">
<link rel="stylesheet" href="/_/static/style.css?v=14">
</head>
<body{{ if .Dark }} class="dark"{{end}}>
<noscript>
Expand Down

0 comments on commit 1b5c6f6

Please sign in to comment.