Selaa lähdekoodia

Expose the author URL in "commits" example (#2751)

Phan An 10 vuotta sitten
vanhempi
commit
6f06f1b724
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/commits/index.html

+ 1 - 1
examples/commits/index.html

@@ -36,7 +36,7 @@
         <li v-for="record in commits">
           <a :href="record.html_url" target="_blank" class="commit">{{record.sha.slice(0, 7)}}</a>
           - <span class="message">{{truncate(record.commit.message)}}</span><br>
-          by <span class="author">{{record.commit.author.name}}</span>
+          by <span class="author"><a :href="record.author.html_url" target="_blank">{{record.commit.author.name}}</a></span>
           at <span class="date">{{formatDate(record.commit.author.date)}}</span>
         </li>
       </ul>