simeonwillbanks / mygists

Organize Your Gists!
https://www.mygists.info
Other
13 stars 2 forks source link

[enhancement] Add edit link to gist #48

Closed leesei closed 11 years ago

leesei commented 11 years ago

I would suggest adding a edit link to the gist (for logged in users). This saves the loading of gist page and one click. I'm not good at ruby so I can only post the HTML here. Keeping in line with Gist, I used icon-pencil instead of icon-edit. For better UX, we can add some visual separator between the edit icon and other decorators.

<li>
<a href="https://gist.github.com/leesei/7247098" target="_blank">adb-linux.md</a> 
<a href="https://gist.github.com/leesei/7247098/edit" target="_blank"><i class="icon-pencil"></i></a>
<p><a href="/leesei/tags/setting"><span class="tag">#setting</span></a> <a href="/leesei/tags/adb"><span class="tag">#adb</span></a> <a href="/leesei/tags/linux"><span class="tag">#linux</span></a></p>
</li>

p.s. Thanks for the great project. It is the index for my Gists. It really deserves its name. :+1:

simeonwillbanks commented 11 years ago

Cool idea! Implementing now...

simeonwillbanks commented 11 years ago

edit

@leesei Looks good from here. How about you?

Thanks for the kind words, and I'm glad you've found My Gists useful. :metal:

leesei commented 11 years ago

Dude, you rock~~~ Thanks

simeonwillbanks commented 11 years ago

You're welcome! :smile: