G-Node/gogs

Show DOIfy button for re-registering new version

Closed this issue · 2 comments

After PR #76 is merged, we'll be able to support repositories with multiple DOIs, so we should also make it easier for users to register new versions of already-registered repos.

The DOIfy button should still be hidden (or disabled) when the latest valid DOI matches the master commit though, so it should appear once the user makes changes to the repository.

Meanwhile, I'd also like to change the name of the button from DOIfy. Perhaps something like Publish or Register for DOI.

One more note:

The DOIfy button (or badge in the case or registered repos) currently appears in the top button row of the repository view, with the Star button removed from upstream GOGS:
image

image

image

I'd like to bring back the Star button and instead have the button, badge, or both on a new row below them. This will make the header bigger for registered (or ready-to-register) repositories, but I think that we can make it work without it being too disruptive.