Skip to content

Commit

Permalink
Merge pull request #401 from wilzbach/download-redirect
Browse files Browse the repository at this point in the history
Redirect downloads to GitHub Releases
merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
  • Loading branch information
dlang-bot authored Aug 14, 2019
2 parents dbd9f9a + 88604d1 commit ea7e64f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 86 deletions.
3 changes: 1 addition & 2 deletions source/dubregistry/web.d
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,7 @@ class DubRegistryFullWebFrontend : DubRegistryWebFrontend {

void getDownload()
{
auto info = downloadInfo();
render!("download.dt", info);
redirect("https://github.com/dlang/dub/releases");
}

@path("/download/LATEST")
Expand Down
83 changes: 0 additions & 83 deletions views/download.dt

This file was deleted.

2 changes: 1 addition & 1 deletion views/layout.inc.menu.dt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- import std.range : empty;
- import std.string : split;
- import std.typecons : tuple;
- auto listitems = [tuple("Packages", [""]), tuple("Documentation", ["Getting Started;https://dub.pm/getting_started", "Advanced Usage;https://dub.pm/advanced_usage", "Command line;https://dub.pm/commandline", "Development;https://dub.pm/develop", "Package format (JSON);https://dub.pm/package-format-json", "Package format (SDLang);https://dub.pm/package-format-sdl", "Settings;https://dub.pm/settings"]), tuple("About", ["Forums;http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub", "Bug tracker (website);https://github.com/dlang/dub-registry/issues", "Bug tracker (DUB);https://github.com/dlang/dub/issues", "Github repository (website);https://github.com/dlang/dub-registry", "GitHub repository (DUB);https://github.com/dlang/dub"]), tuple("Download", ["download"])];
- auto listitems = [tuple("Packages", [""]), tuple("Documentation", ["Getting Started;https://dub.pm/getting_started", "Advanced Usage;https://dub.pm/advanced_usage", "Command line;https://dub.pm/commandline", "Development;https://dub.pm/develop", "Package format (JSON);https://dub.pm/package-format-json", "Package format (SDLang);https://dub.pm/package-format-sdl", "Settings;https://dub.pm/settings"]), tuple("About", ["Forums;http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub", "Bug tracker (website);https://github.com/dlang/dub-registry/issues", "Bug tracker (DUB);https://github.com/dlang/dub/issues", "Github repository (website);https://github.com/dlang/dub-registry", "GitHub repository (DUB);https://github.com/dlang/dub"]), tuple("Download", ["https://github.com/dlang/dub/releases"])];
- if( req.session )
- listitems ~= tuple("My account", ["Manage packages;my_packages", "Edit profile;profile", "Log out;logout"]);
- else
Expand Down

0 comments on commit ea7e64f

Please sign in to comment.