You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/templates/Document/View.phtml
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,10 @@
2
2
namespaceBNETDocs\Templates;
3
3
4
4
use \BNETDocs\Libraries\Common;
5
+
use \BNETDocs\Libraries\Gravatar;
5
6
use \BNETDocs\Libraries\Pair;
6
7
8
+
$comments = $this->getContext()->comments;
7
9
$object_id = $this->getContext()->document_id;
8
10
$object = $this->getContext()->document;
9
11
@@ -26,6 +28,7 @@ if ($object) {
26
28
}
27
29
28
30
#$this->additional_css[] = "/a/document.css";
31
+
$this->additional_css[] = "/a/comments.css";
29
32
require("./header.inc.phtml");
30
33
?>
31
34
<article>
@@ -41,8 +44,21 @@ require("./header.inc.phtml");
41
44
<article>
42
45
<header>Comments</header>
43
46
<section>
44
-
<?phprequire("./NYI.inc.phtml"); ?>
45
-
<p class="center">If you'd like to leave a suggestion or concern, you can do so <a href="https://github.com/BNETDocs/bnetdocs-web/issues/new?labels[]=bnetdocs-phoenix&labels[]=question&body=<?phpechorawurlencode("Hi,\n\n<fill in your question here>\n\nThanks!\n\nReference: " . $url); ?>" rel="external">over on GitHub</a>. Sorry for the trouble!</p>
47
+
<?phpif (!$comments) { ?>
48
+
<p class="center"><em>no one has commented yet.</em></p>
0 commit comments