Skip to content

Commit

Permalink
fixed img in edit comment/edit post
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormy110 committed Jan 15, 2021
1 parent ed82c1d commit 9ae8c34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/add-comment.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
${header}
<div class="game-page">
<h1>Comment on: ${post.title}</h1>
<div>
<div class="grid-item-3 img">
${post.media.includes("/uploads/media/") ? `<img
src="${post.media}"
alt="${post.displayname}'s image"
Expand Down
2 changes: 1 addition & 1 deletion templates/createFormEdit.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</label>
<br>
<label >Game Title
<select class="select name="gameid">
<select class="select" name="gameid">
${games.map(game=> `<option value="${game.id}">${game.title}</option>`)}
</select>
</label>
Expand Down
2 changes: 1 addition & 1 deletion templates/editComment.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
${header}
<div class="game-page">
<h1>Comment on: ${post.title}</h1>
<div class="img-holder">
<div class="grid-item-3 img">
${post.media.includes("/uploads/media/") ? `<img src="${post.media}" alt="${user.displayname}'s image" />`:'' }
</div>
<p>${post.content}</p>
Expand Down

0 comments on commit 9ae8c34

Please sign in to comment.