diff --git a/app/blueprints/packages/releases.py b/app/blueprints/packages/releases.py index 65e678a..db8dd55 100644 --- a/app/blueprints/packages/releases.py +++ b/app/blueprints/packages/releases.py @@ -45,7 +45,7 @@ def get_mt_releases(is_max): class CreatePackageReleaseForm(FlaskForm): title = StringField("Title", [InputRequired(), Length(1, 30)]) uploadOpt = RadioField ("Method", choices=[("upload", "File Upload")], default="upload") - vcsLabel = StringField("VCS Commit Hash, Branch, or Tag", default="master") + vcsLabel = StringField("Git reference (ie: commit hash, branch, or tag)", default=None) fileUpload = FileField("File Upload") min_rel = QuerySelectField("Minimum Minetest Version", [InputRequired()], query_factory=lambda: get_mt_releases(False), get_pk=lambda a: a.id, get_label=lambda a: a.name) @@ -74,7 +74,7 @@ def create_release(package): # Initial form class from post data and default data form = CreatePackageReleaseForm() if package.repo is not None: - form["uploadOpt"].choices = [("vcs", "From Git Commit or Branch"), ("upload", "File Upload")] + form["uploadOpt"].choices = [("vcs", "Import from Git"), ("upload", "Upload .zip file")] if request.method != "POST": form["uploadOpt"].data = "vcs" diff --git a/app/templates/packages/release_edit.html b/app/templates/packages/release_edit.html index a0070eb..7340ec6 100644 --- a/app/templates/packages/release_edit.html +++ b/app/templates/packages/release_edit.html @@ -41,6 +41,8 @@ {% endif %} {% endif %} +
- Note: Min and max versions will be used to hide the package on
- platforms not within the range.
- You cannot select the oldest version for min or the newest version
- for max as this does not make sense - you can't predict the future.
+ Set the minimum and maximum Minetest versions supported.
+ This release will be hidden to clients outside of that range.
Leave both as None if in doubt.
+ You can set this automatically in the .conf of your package.
+
+ You cannot select the oldest version for min or the newest version + for max as this does not make sense - you can't predict the future.
- {{ render_submit_field(form.submit) }} ++ {{ render_submit_field(form.submit) }} +