mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 19:56:50 +00:00
Inline additional information about subform mark
This commit is contained in:
parent
4040c49521
commit
54cea88486
@ -202,8 +202,7 @@ impl FormEntryContainer for Unterformular {
|
|||||||
|
|
||||||
impl Listable for Unterformular {
|
impl Listable for Unterformular {
|
||||||
fn to_listed_string(&self) -> String {
|
fn to_listed_string(&self) -> String {
|
||||||
if self.hat_unterformulare {
|
format!(
|
||||||
return format!(
|
|
||||||
"Unterformular ({}) '{}' in Revision '{}' {}",
|
"Unterformular ({}) '{}' in Revision '{}' {}",
|
||||||
match self.is_system_library_content() {
|
match self.is_system_library_content() {
|
||||||
true => style("S").yellow(),
|
true => style("S").yellow(),
|
||||||
@ -211,17 +210,11 @@ impl Listable for Unterformular {
|
|||||||
},
|
},
|
||||||
style(&self.name).yellow(),
|
style(&self.name).yellow(),
|
||||||
style(&self.revision).yellow(),
|
style(&self.revision).yellow(),
|
||||||
|
if self.hat_unterformulare {
|
||||||
style("Unterformular mit Markierung 'hat Unterformulare'!").red()
|
style("Unterformular mit Markierung 'hat Unterformulare'!").red()
|
||||||
);
|
} else {
|
||||||
|
style("")
|
||||||
}
|
}
|
||||||
format!(
|
|
||||||
"Unterformular ({}) '{}' in Revision '{}'",
|
|
||||||
match self.is_system_library_content() {
|
|
||||||
true => style("S").yellow(),
|
|
||||||
_ => style("u"),
|
|
||||||
},
|
|
||||||
style(&self.name).yellow(),
|
|
||||||
style(&self.revision).yellow()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user