Просмотр исходного кода

Add full commit message as a tooltip

Lucas Stadler лет назад: 8
Родитель
Сommit
acf0d51981
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      quit.go

+ 5 - 1
quit.go

@ -85,6 +85,10 @@ func (fc *FancyCommit) Summary() string {
85 85
	return fc.commit.Summary()
86 86
}
87 87
88
func (fc *FancyCommit) Description() string {
89
	return fc.commit.Message()
90
}
91
88 92
func (fc *FancyCommit) Files() ([]*FancyFile, error) {
89 93
	if fc.files == nil {
90 94
		tree, err := fc.commit.Tree()
@ -142,7 +146,7 @@ var repoTmpl = template.Must(template.New("").Parse(`<!doctype html>
142 146
	<body>
143 147
		<section id="commit" class="commit-info">
144 148
			<div class="commit-author">{{ .Repo.Commit.Author }}</div>
145
			<div class="commit-summary">{{ .Repo.Commit.Summary }}</div>
149
			<div class="commit-summary" title="{{ .Repo.Commit.Description }}">{{ .Repo.Commit.Summary }}</div>
146 150
			<div class="commit-id" data-commit="{{ .Repo.Commit.Id 0 }}"><a href="#">{{ .Repo.Commit.Id 10 }}</a></div>
147 151
			<time class="commit-date">{{ .Repo.Commit.Date }}</time>
148 152
		</section>