I find the second one a little bit "prettier", but the first isn't much worse.
The question is, what are you trying to do there? You don't want to alter some state of several elements based on a couple of conditions. You want to display one kind of UI when the record is completed, and another kind of UI if it is not. Looking at it from this point, the second piece definitely conveys this intention much better.