Skip to content

Commit c29e722

Browse files
basilkhan05ankane
authored andcommitted
Hide Mastermind on home page if user class does not exist (#238)
1 parent 808e3af commit c29e722

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/views/blazer/queries/home.html.erb

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
<thead>
3333
<tr>
3434
<th>Name</th>
35-
<th style="width: 20%; text-align: right;">Mastermind</th>
35+
<% if Blazer.user_class %>
36+
<th style="width: 20%; text-align: right;">Mastermind</th>
37+
<% end%>
3638
</tr>
3739
</thead>
3840
<tbody class="list" v-cloak>
@@ -41,7 +43,9 @@
4143
<a :href="itemPath(query)" :class="{ dashboard: query.dashboard }">{{ query.name }}</a>
4244
<span class="vars">{{ query.vars }}</span>
4345
</td>
44-
<td class="creator">{{ query.creator }}</td>
46+
<% if Blazer.user_class %>
47+
<td class="creator">{{ query.creator }}</td>
48+
<% end %>
4549
</tr>
4650
</tbody>
4751
</table>

0 commit comments

Comments
 (0)