Signed by hanna SSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
assets/base.css +2 −1 crates/web/src/releases.rs +5 −5 assets/base.css +2 −1 2219 } 2219 } 2220 . release-form-actions { 2220 . release-form-actions { 2221 display : flex ; 2221 display : flex ; 2222 gap : 0.6rem ; 2222 align-items : center ; 2223 gap : 0.75rem ; 2223 margin-top : 1rem ; 2224 margin-top : 1rem ; 2224 } 2225 } 2225 2226
crates/web/src/releases.rs +5 −5 333 textarea id="rl-body" name="body" rows="10" placeholder="Describe this release (markdown supported)" { 333 textarea id="rl-body" name="body" rows="10" placeholder="Describe this release (markdown supported)" { 334 ( existing. and_then ( |r| r. body. as_deref ( ) ) . unwrap_or ( "" ) ) 334 ( existing. and_then ( |r| r. body. as_deref ( ) ) . unwrap_or ( "" ) ) 335 } 335 } 336 label class="checkbox" { 337 input type ="checkbox" name="prerelease" value="1" 338 checked[ existing. is_some_and ( |r| r. is_prerelease) ] ; 339 " This is a pre-release" 340 } 341 div class="release-form-actions" { 336 div class="release-form-actions" { 342 button class="btn btn-primary inline-btn" type ="submit" name="action" value="publish" { 337 button class="btn btn-primary inline-btn" type ="submit" name="action" value="publish" { 343 @if existing. is_some ( ) { "Update release" } @else { "Publish release" } 338 @if existing. is_some ( ) { "Update release" } @else { "Publish release" } 345 @if existing. is_none_or ( |r| r. is_draft) { 340 @if existing. is_none_or ( |r| r. is_draft) { 346 button class="btn inline-btn" type ="submit" name="action" value="draft" { "Save draft" } 341 button class="btn inline-btn" type ="submit" name="action" value="draft" { "Save draft" } 347 } 342 } 343 label class="checkbox" { 344 input type ="checkbox" name="prerelease" value="1" 345 checked[ existing. is_some_and ( |r| r. is_prerelease) ] ; 346 " Pre-release" 347 } 348 } 348 } 349 } 349 } 350 } 350 }