Skip to content

Commit

Permalink
Remove asset attribution bubble
Browse files Browse the repository at this point in the history
Was added when info bubbles where few.
Now there can be three bubbles with lots of info to digest.
The attribution info is now partially duplicated in the support bubble.
The exact author of a transcript isn't that useful to the reader.
The attribution data is still in the markdown source.
There is now, unfortunately, no visual reward for contributing a transcript.
  • Loading branch information
marcuswhybrow committed Apr 19, 2024
1 parent ec0baa5 commit 778c9f0
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions cmd/ray-peat-rodeo/chat.templ
Original file line number Diff line number Diff line change
Expand Up @@ -337,36 +337,6 @@ templ RenderChat(file *File) {
</a>
</div>
</div>
if file.IsComplete() {
<!-- Attribution -->
<a
data-pagefind-ignore
if file.FrontMatter.Transcription.Url !="" {
href={ templ.URL(file.FrontMatter.Transcription.Url) }
} else {
href={ templ.URL(file.FrontMatter.Source.Url) }
}
class="block z-10 transition-all m-2 p-4 hover:translate-y-1 shadow-lg hover:shadow-2xl shadow-green-800/20 hover:shadow-green-600/40 rounded-md bg-gradient-to-br from-green-100 from-10% to-green-100 hover:from-green-50 hover:from-70% hover:to-green-100 xl:block w-2/5 mr-[-10px] lg:mr-[-10%] xl:mr-[-20%] float-right clear-right text-sm relative leading-5 tracking-tight"
>
if file.FrontMatter.Transcription.Author != "" {
<span class="text-green-700">
if file.FrontMatter.Transcription.Author == "Marcus Whybrow" {
<span class="font-bold">{ file.FrontMatter.Transcription.Author }</span>
transcribed this { strings.ToLower(kindToFilter(file.FrontMatter.Source.Kind)) }, { file.FrontMatter.Transcription.Date }.
} else {
Transcription modified from an earlier version by
<span class="font-bold">
{ file.FrontMatter.Transcription.Author }
</span>, { file.FrontMatter.Transcription.Date }.
}
</span>
} else {
<span class="text-green-700">
Written interview from <span class="font-bold">{ file.FrontMatter.Source.Series }</span>.
</span>
}
</a>
}
<!-- Content -->
@Unsafe(string(file.Html))
if !file.FrontMatter.Completion.Content {
Expand Down

0 comments on commit 778c9f0

Please sign in to comment.