This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/main by this push:
     new ec41523  Render hashes with ellipses to show all data on a page
     new 902dc26  Merge pull request #296 from atoulme/render_hashes
ec41523 is described below

commit ec415238b6149b768229db04783c4be3ee1885d3
Author: Antoine Toulme <[email protected]>
AuthorDate: Tue Jun 29 00:09:36 2021 +0200

    Render hashes with ellipses to show all data on a page
---
 eth-crawler/src/main/resources/webapp/index.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eth-crawler/src/main/resources/webapp/index.html 
b/eth-crawler/src/main/resources/webapp/index.html
index 90477ce..d73ed4c 100644
--- a/eth-crawler/src/main/resources/webapp/index.html
+++ b/eth-crawler/src/main/resources/webapp/index.html
@@ -91,10 +91,10 @@ specific language governing permissions and limitations 
under the License.
                     <tbody>
                       <tr v-for="item in recent">
                           <td>
-                            {{ item.createdAt }}
+                            {{ (new Date(item.createdAt)).toLocaleDateString() 
+ " " + (new Date(item.createdAt)).toLocaleTimeString() }}
                           </td>
                           <td>
-                              {{ item.nodeId.substr(0,4) }}...{{ 
item.nodeId.substr(-4,4) }}
+                              {{ item.nodeId.substr(0,8) }}...{{ 
item.nodeId.substr(-8,8) }}
                           </td>
                           <td>
                               {{ item.p2pVersion }}
@@ -106,10 +106,10 @@ specific language governing permissions and limitations 
under the License.
                               {{ item.capabilities }}
                           </td>
                           <td>
-                              {{ item.genesisHash }}
+                              {{ item.genesisHash.substr(0,8) }}...{{ 
item.genesisHash.substr(-8,8) }}
                           </td>
                           <td>
-                              {{ item.bestHash }}
+                              {{ item.bestHash.substr(0,8) }}...{{ 
item.bestHash.substr(-8,8) }}
                           </td>
                       </tr>
                     </tbody>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to