diff options
author | MrYummy <elemental428@gmail.com> | 2017-07-04 22:24:50 +0200 |
---|---|---|
committer | MrYummy <elemental428@gmail.com> | 2017-07-04 22:27:07 +0200 |
commit | 0aad3bb71afbb6419b90f499118f18676452b095 (patch) | |
tree | e6af19ca1fe67f2edfa1f2fef47089a97b1f9eeb /app/views/memory/table.html.erb | |
parent | 0f74795159ba65432aa1a6a25367dfdcffd4bb12 (diff) |
Added choice of project, r/w perms, and fixed up some cssmemory
Diffstat (limited to 'app/views/memory/table.html.erb')
-rw-r--r-- | app/views/memory/table.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/memory/table.html.erb b/app/views/memory/table.html.erb index 03f1ef2..2f24dc4 100644 --- a/app/views/memory/table.html.erb +++ b/app/views/memory/table.html.erb @@ -1,3 +1,4 @@ +<h1 style="text-align:center"><%= title @name + (" (read-only)" if !@can_edit).to_s %></h1> <table class="memory-table", data-project="<%=params[:project]%>"> <tr> <% ["Address","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].each do |i| %> @@ -8,7 +9,7 @@ <tr> <td><b><%=(rindex*16).to_s(16).upcase.rjust(6, "0")%></b></td> <% row.each_with_index do |hex, hindex| %> - <td contenteditable="<%=@can_edit%>" id="memory-<%=(16*rindex)+hindex%>"><%=hex.to_s.upcase.rjust(2, "0")%></td> + <td contenteditable="<%=!!@can_edit%>" id="memory-<%=(16*rindex)+hindex%>"><%=hex.to_s.upcase.rjust(2, "0")%></td> <% end %> </tr> <% end %> |