Enabling the use of choosing example cluster in modal and correct superscript
This commit is contained in:
parent
9a184011c1
commit
788a8eca01
|
@ -100,7 +100,7 @@ class EditEntryLabels(Message):
|
||||||
model.entry.labels = labels
|
model.entry.labels = labels
|
||||||
|
|
||||||
|
|
||||||
class ExampleClusterEdit(Message):
|
class ExampleClusterEdit(NoReset):
|
||||||
def update_model(self, model):
|
def update_model(self, model):
|
||||||
example = self.get_arg(0, Example)
|
example = self.get_arg(0, Example)
|
||||||
cluster = self.get_arg(1, int)
|
cluster = self.get_arg(1, int)
|
||||||
|
|
|
@ -121,7 +121,7 @@ class View:
|
||||||
|
|
||||||
example_content = []
|
example_content = []
|
||||||
if cluster is not None:
|
if cluster is not None:
|
||||||
example_content.append(h("span.example-cluster", {}, str(cluster)))
|
example_content.append(h("span.example-cluster", {}, NUM2STR[cluster]))
|
||||||
|
|
||||||
example_text_inner_tag = "span.example-text-{}".format(example.get_view_type())
|
example_text_inner_tag = "span.example-text-{}".format(example.get_view_type())
|
||||||
example_content.append(h(example_text_inner_tag, {}, example.text()))
|
example_content.append(h(example_text_inner_tag, {}, example.text()))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user