Skip to content

Commit

Permalink
‌‌‌‌‌Show more links
Browse files Browse the repository at this point in the history
  • Loading branch information
liut committed Jul 16, 2024
1 parent f9ce21d commit 2ff1868
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/web/handle_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

const (
LimitArticle = 3
LimitLinks = 10
LimitLinks = 20
)

func (s *server) welcome(c *gin.Context) {
Expand Down Expand Up @@ -107,7 +107,7 @@ func (s *server) articlePost(c *gin.Context) {
}

func (s *server) linksForm(c *gin.Context) {
links, err := backends.LoadLinks(9, 0)
links, err := backends.LoadLinks(LimitLinks, 0)
if err != nil {
c.AbortWithError(http.StatusNotFound, err) //nolint
return
Expand Down
4 changes: 0 additions & 4 deletions pkg/xrefs/templates/password_forgot.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@
max: 30,
message: 'The username must be more than 4 and less than 30 characters long'
},
/*remote: {
url: 'remote.php',
message: 'The username is not available'
},*/
regexp: {
regexp: /^[a-zA-Z0-9_\.]+$/,
message: 'The username can only consist of alphabetical, number, dot and underscore'
Expand Down
3 changes: 3 additions & 0 deletions pkg/xrefs/templates/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
column-gap: 2.5em;
}

.list-group { columns: 32em auto; column-gap: 2.5em; }
.list-group-item { border-width: 0 }

</style>
{{ end }}
{{ define "content" }}
Expand Down

0 comments on commit 2ff1868

Please sign in to comment.