이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
writefreely
/
writefreely
의 미러
https://github.com/writefreely/writefreely.git
보기
2
좋아요
0
포크
0
코드
이슈
릴리즈
25
위키
활동
소스 검색
Fix login.tmpl rendering
This passes in the correct field named GitlabDisplayName.
pull/283/head
Matt Baer
4 년 전
부모
06054a2cd7
커밋
79a968f425
2개의 변경된 파일
과
9개의 추가작업
그리고
9개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-8
account.go
+1
-1
pages/login.tmpl
+ 8
- 8
account.go
파일 보기
@@ -302,14 +302,14 @@ func viewLogin(app *App, w http.ResponseWriter, r *http.Request) error {
p := &struct {
page.StaticPage
To string
Message template.HTML
Flashes []template.HTML
LoginUsername string
OauthSlack bool
OauthWriteAs bool
OauthGitlab bool
Gitlab
Host
string
To
string
Message
template.HTML
Flashes
[]template.HTML
LoginUsername
string
OauthSlack
bool
OauthWriteAs
bool
OauthGitlab
bool
Gitlab
DisplayName
string
}{
pageForReq(app, r),
r.FormValue("to"),
+ 1
- 1
pages/login.tmpl
파일 보기
@@ -55,7 +55,7 @@ hr.short {
<a class="btn cta loginbtn" id="writeas-login" href="/oauth/write.as">Sign in with <strong>Write.as</strong></a>
{{ end }}
{{ if .OauthGitlab }}
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab">Sign in with <strong>{{
.GitlabDisplayName
}}</strong></a>
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab">Sign in with <strong>{{.GitlabDisplayName}}</strong></a>
{{ end }}
</div>
쓰기
미리보기
불러오는 중...
취소
저장