mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 07:36:37 +00:00
Make the community title in the sidebar link to the local community. (#1161)
* Make the community title in the sidebar link to the local community. * Ternary erudaStr for PR. --------- Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
parent
5f5ef404d2
commit
0d67c64af9
|
@ -330,14 +330,15 @@ async function createSsrHtml(root: string, isoData: IsoDataOptionalSite) {
|
||||||
.then(buf => buf.toString("base64"))}`
|
.then(buf => buf.toString("base64"))}`
|
||||||
: favIconPngUrl;
|
: favIconPngUrl;
|
||||||
|
|
||||||
const eruda = (
|
const erudaStr =
|
||||||
|
process.env["LEMMY_UI_DEBUG"] === "true"
|
||||||
|
? renderToString(
|
||||||
<>
|
<>
|
||||||
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
|
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
|
||||||
<script>eruda.init();</script>
|
<script>eruda.init();</script>
|
||||||
</>
|
</>
|
||||||
);
|
)
|
||||||
|
: "";
|
||||||
const erudaStr = process.env["LEMMY_UI_DEBUG"] ? renderToString(eruda) : "";
|
|
||||||
|
|
||||||
const helmet = Helmet.renderStatic();
|
const helmet = Helmet.renderStatic();
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,9 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
{this.props.showIcon && !community.removed && (
|
{this.props.showIcon && !community.removed && (
|
||||||
<BannerIconHeader icon={community.icon} banner={community.banner} />
|
<BannerIconHeader icon={community.icon} banner={community.banner} />
|
||||||
)}
|
)}
|
||||||
<span className="mr-2">{community.title}</span>
|
<span className="mr-2">
|
||||||
|
<CommunityLink community={community} hideAvatar />
|
||||||
|
</span>
|
||||||
{subscribed === "Subscribed" && (
|
{subscribed === "Subscribed" && (
|
||||||
<button
|
<button
|
||||||
className="btn btn-secondary btn-sm mr-2"
|
className="btn btn-secondary btn-sm mr-2"
|
||||||
|
|
Loading…
Reference in a new issue