Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put rune higher on /inscription #3363

Merged
merged 8 commits into from
Apr 12, 2024
Merged
2 changes: 1 addition & 1 deletion src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2800,9 +2800,9 @@ mod tests {
StatusCode::OK,
".*
<dl>
.*
<dt>rune</dt>
<dd><a href=/rune/AAAAAAAAAAAAA>AAAAAAAAAAAAA</a></dd>
.*
</dl>
.*",
);
Expand Down
2 changes: 1 addition & 1 deletion src/templates/inscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ mod tests {
<h1>Inscription 1</h1>
.*
<dl>
.*
<dt>rune</dt>
<dd><a href=/rune/A•A>A•A</a></dd>
.*
</dl>
"
.unindent()
Expand Down
8 changes: 4 additions & 4 deletions templates/inscription.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ <h1>Inscription {{ self.number }}</h1>
<a href=/children/{{self.id}}>all</a>
</div>
</dd>
%% }
%% if let Some(rune) = self.rune {
<dt>rune</dt>
<dd><a href=/rune/{{ rune }}>{{ rune }}</a></dd>
%% }
<dt>id</dt>
<dd class=monospace>{{ self.id }}</dd>
Expand Down Expand Up @@ -111,8 +115,4 @@ <h1>Inscription {{ self.number }}</h1>
<dd>{{ self.satpoint.offset }}</dd>
<dt>ethereum teleburn address</dt>
<dd>{{ teleburn::Ethereum::from(self.id) }}</dd>
%% if let Some(rune) = self.rune {
<dt>rune</dt>
<dd><a href=/rune/{{ rune }}>{{ rune }}</a></dd>
%% }
</dl>
Loading